From 99b062eeca471bdcbfcacd88e308fab9972cd6ec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 19 八月 2025 14:21:33 +0800
Subject: [PATCH] 展示优化
---
src/store/modules/permission.js | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index a88584c..90e3782 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -4,6 +4,8 @@
import Layout from '@/layout/index'
import ParentView from '@/components/ParentView'
import InnerLink from '@/layout/components/InnerLink'
+import store from "@/store";
+
const permission = {
state: {
@@ -47,12 +49,31 @@
commit('SET_TOPBAR_ROUTES', sidebarRoutes)
resolve(rewriteRoutes)
console.log(res.data,'璺敱鏁版嵁');
+ const result = res.data.find(item => item.name == "Followvisit");
+ Processrouting(result)
})
})
}
}
}
+function Processrouting(result){
+ const arrf=[];
+ const arr=store.getters.Serviceauthority;
+ console.log(result,'result');
+ console.log(arr,'arr');
+ result.children.forEach(objA => {
+ arr.forEach(objB => {
+ if (objA.meta.title === objB.label) {
+ arrf.push(objB);
+ }
+ });
+ });
+ console.log(arrf,'arrf');
+ store.commit('SET_Serviceauthority', arrf);
+
+
+}
// 閬嶅巻鍚庡彴浼犳潵鐨勮矾鐢卞瓧绗︿覆锛岃浆鎹负缁勪欢瀵硅薄
function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
--
Gitblit v1.9.3