From 5de621e943d9605d10e2ac5d46658c0626a68caa Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 07 三月 2024 10:11:05 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/SRM --- src/router/index.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 5b0aac6..3bb911a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,7 @@ import purchaseRouter from "./purchase/index.js" import productRouter from "./product/index.js" import {getMenuTreeByRole} from "@/api/menus/index" +import store from '@/store/index.js'; Vue.use(Router) const login = (resolve) => require(["@/views/other/login/index"], resolve) @@ -118,6 +119,8 @@ }; const foundObject = res.data.list.find(obj => obj.systemType === 4); if (foundObject) { + // 瀛樺偍杩泇uex + store.commit('setMenus', foundObject); foundObject.menus.forEach(item => { const nextPath = item.children.find(obj => obj.path === routePath); if (nextPath) { -- Gitblit v1.8.0