|
@@ -47,14 +47,15 @@ router.beforeEach((to: ToRouteType, _from, next) => {
|
|
if (to.meta?.title) {
|
|
if (to.meta?.title) {
|
|
document.title = to.meta?.title;
|
|
document.title = to.meta?.title;
|
|
}
|
|
}
|
|
|
|
+ console.log("before to", to);
|
|
next();
|
|
next();
|
|
});
|
|
});
|
|
|
|
|
|
router.afterEach((to) => {
|
|
router.afterEach((to) => {
|
|
- if (to.params?.mechanismId) {
|
|
|
|
- localStorage.setItem("mechanismId", to.params.mechanismId as string);
|
|
|
|
- }
|
|
|
|
- console.log("to", to.query);
|
|
|
|
|
|
+ // if (to.params?.mechanismId) {
|
|
|
|
+ // localStorage.setItem("mechanismId", to.params.mechanismId as string);
|
|
|
|
+ // }
|
|
|
|
+ console.log("after to", to);
|
|
|
|
|
|
if (to.query?.caringMode == "open") {
|
|
if (to.query?.caringMode == "open") {
|
|
handleChangeHtmlFontSize();
|
|
handleChangeHtmlFontSize();
|