From 71927d489198518e2a9e4188340dfbdc35caa3a2 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 29 十一月 2023 10:46:08 +0800
Subject: [PATCH] 1.标准变系列,系列变系列测试 2.业务数据数据更改,直接发布
---
Source/UBCS-WEB/src/permission.js | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/Source/UBCS-WEB/src/permission.js b/Source/UBCS-WEB/src/permission.js
index 0a625cd..035ff10 100644
--- a/Source/UBCS-WEB/src/permission.js
+++ b/Source/UBCS-WEB/src/permission.js
@@ -7,8 +7,7 @@
import {validatenull} from '@/util/validate'
import {getToken} from '@/util/auth'
import NProgress from 'nprogress' // progress bar
-import 'nprogress/nprogress.css'
-import Store from "@/store"; // progress bar style
+import 'nprogress/nprogress.css' // progress bar style
NProgress.configure({showSpinner: false});
const lockPage = store.getters.website.lockPage; //閿佸睆椤�
router.beforeEach((to, from, next) => {
@@ -30,16 +29,15 @@
next({path: '/login'})
})
} else {
- const fullPath = to.fullPath
- const queryString = fullPath.split('?')[1];
- const value = to.query.src || to.fullPath;
- const label = queryString === 'wupin'
- ? '鐗╁搧涓绘暟鎹�'
- : (queryString === 'renyuan'
- ? '浜哄憳涓绘暟鎹�'
- : (queryString === 'gongyingshang'
- ? '渚涘簲鍟嗕富鏁版嵁'
- : (to.query.name || to.name)));
+ let query=JSON.parse(JSON.stringify(to.query));
+ for(var q in to.query) {
+ if (to.query[q].indexOf('@name=') != -1) {
+ query[q] = to.query[q].split('@name=')[0]
+ query['name'] = to.query[q].split('@name=')[1]
+ }
+ }
+ const value = query.src || to.fullPath|| to.path ;
+ const label = query.name || to.name;
const meta = to.meta || router.$avueRouter.meta || {};
const i18n = to.query.i18n;
if (to.query.target) {
--
Gitblit v1.9.3