Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeChen committed Nov 27, 2024
1 parent e7f452e commit 27ba6d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
21 changes: 12 additions & 9 deletions JavaScript/General/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,13 @@ const routes = {

await myFunction.Page404();
return;
}
} else {

window.myData.travelpathParams = params;
window.myData.travel.isCountry = true;
await routesFunction.travel();
window.myData.travelpathParams = params;
window.myData.travel.isCountry = true;
window.myData.travel.isProvice = false;
await routesFunction.travel();
}
},
"/travel/:countryId/:proviceId": async (
params
Expand All @@ -247,12 +249,13 @@ const routes = {

await myFunction.Page404();
return;
}
} else {

window.myData.travelpathParams = params;
window.myData.travel.isCountry = true;
window.myData.travel.isProvice = true;
await routesFunction.travel();
window.myData.travelpathParams = params;
window.myData.travel.isCountry = true;
window.myData.travel.isProvice = true;
await routesFunction.travel();
}
},

"/lens": async () => {
Expand Down
1 change: 1 addition & 0 deletions JavaScript/Travel/travel.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const SeeChen_TravelPage = {

await SeeChen_TravelPage.registerEvents();

console.log(window.myData.travelpathParams);
if (window.myData.travel.isCountry) {

await new Promise(r => setTimeout(r, 500));
Expand Down

0 comments on commit 27ba6d8

Please sign in to comment.