diff --git a/src/stores/Reservation.js b/src/stores/Reservation.js
index 9e3a978..e28cf66 100644
--- a/src/stores/Reservation.js
+++ b/src/stores/Reservation.js
@@ -71,9 +71,6 @@ class Reservation {
this.reservationDetail = {
referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.PlanDetail[0].Guide, arrivalDate: json.PlanDetail[0].eoi_getdate
};
- this.meetAndGreet = {
- customerNames: json.JJPInfo[0].CustomerName, referenceNumber: json.JJPInfo[0].GroupName, pax: json.JJPInfo[0].Str_PersonNum
- };
this.customerNames = json.CusAndRequest[0].GCI_CustomerList;
this.confirmationList = json.PlanChange.map((data, index) => {
return {
@@ -212,10 +209,6 @@ class Reservation {
referenceNumber: '', arrivalDate: '', tourGuide: ''
};
- meetAndGreet = {
- referenceNumber: '', customerNames: '', pax: ''
- }
-
reservationPage = {
current: 1,
size: 10,
diff --git a/src/views/App.jsx b/src/views/App.jsx
index e64af33..34ad535 100644
--- a/src/views/App.jsx
+++ b/src/views/App.jsx
@@ -34,8 +34,16 @@ function App() {
useEffect(() => {
// Check location
console.info("location.pathname: " + location.pathname);
+ console.info(location.pathname.split('/'));
}, [location]);
+ const splitPath = location.pathname.split('/');
+ let defaultPath = 'reservation';
+
+ if (splitPath.length > 1) {
+ defaultPath = splitPath[1];
+ }
+
const {
token: { colorBgContainer },
} = theme.useToken();
@@ -60,12 +68,12 @@ function App() {