From a758bc277ff4d1f8ede96a03cbbc10b96176be82 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 21 七月 2023 15:28:36 +0800
Subject: [PATCH] 路由配置

---
 Source/UBCS-WEB/src/permission.js |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS-WEB/src/permission.js b/Source/UBCS-WEB/src/permission.js
index b6ca71d..0a625cd 100644
--- a/Source/UBCS-WEB/src/permission.js
+++ b/Source/UBCS-WEB/src/permission.js
@@ -7,7 +7,8 @@
 import {validatenull} from '@/util/validate'
 import {getToken} from '@/util/auth'
 import NProgress from 'nprogress' // progress bar
-import 'nprogress/nprogress.css' // progress bar style
+import 'nprogress/nprogress.css'
+import Store from "@/store"; // progress bar style
 NProgress.configure({showSpinner: false});
 const lockPage = store.getters.website.lockPage; //閿佸睆椤�
 router.beforeEach((to, from, next) => {
@@ -29,8 +30,16 @@
             next({path: '/login'})
           })
         } else {
+          const fullPath = to.fullPath
+          const queryString = fullPath.split('?')[1];
           const value = to.query.src || to.fullPath;
-          const label = to.query.name || to.name;
+          const label = queryString === 'wupin'
+            ? '鐗╁搧涓绘暟鎹�'
+            : (queryString === 'renyuan'
+              ? '浜哄憳涓绘暟鎹�'
+              : (queryString === 'gongyingshang'
+                ? '渚涘簲鍟嗕富鏁版嵁'
+                : (to.query.name || to.name)));
           const meta = to.meta || router.$avueRouter.meta || {};
           const i18n = to.query.i18n;
           if (to.query.target) {

--
Gitblit v1.9.3