tangning il y a 8 mois
Parent
commit
71c2e1326d

+ 1 - 1
package.json

@@ -68,7 +68,7 @@
     "vue": "^3.2.26",
     "vue-i18n": "^9.1.9",
     "vue-json-pretty": "^1.8.2",
-    "vue-router": "^4.0.12",
+    "vue-router": "4.0.12",
     "vue-types": "^4.1.1",
     "vue3-google-map": "^0.21.0",
     "xlsx": "^0.17.4"

Fichier diff supprimé car celui-ci est trop grand
+ 15354 - 0
pnpm-lock.yaml


+ 2 - 1
src/components/Application/src/AppLocalePicker.vue

@@ -56,7 +56,8 @@
   async function toggleLocale(lang: LocaleType | string) {
     await changeLocale(lang as LocaleType);
     selectedKeys.value = [lang as string];
-    props.reload && location.reload();
+    console.log('toggleLocale', props.reload);
+    // props.reload && location.reload();
   }
 
   function handleMenuEvent(menu: DropMenu) {

+ 1 - 0
src/router/guard/permissionGuard.ts

@@ -71,6 +71,7 @@ export function createPermissionGuard(router: Router) {
     }
 
     // Jump to the 404 page after processing the login
+    console.log('to.fullPath', from.path, LOGIN_PATH, from.path === LOGIN_PATH, to.fullPath);
     if (
       from.path === LOGIN_PATH &&
       to.name === PAGE_NOT_FOUND_ROUTE.name &&

+ 1 - 1
src/router/routes/basic.ts

@@ -20,7 +20,7 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
   children: [
     {
       path: '/:path(.*)*',
-      name: PAGE_NOT_FOUND_NAME + 'index',
+      name: PAGE_NOT_FOUND_NAME,
       component: EXCEPTION_COMPONENT,
       meta: {
         title: 'ErrorPage',