tangning 8 月之前
父节点
当前提交
71c2e1326d
共有 5 个文件被更改,包括 15359 次插入3 次删除
  1. 1 1
      package.json
  2. 15354 0
      pnpm-lock.yaml
  3. 2 1
      src/components/Application/src/AppLocalePicker.vue
  4. 1 0
      src/router/guard/permissionGuard.ts
  5. 1 1
      src/router/routes/basic.ts

+ 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"

文件差异内容过多而无法显示
+ 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',