From 4eec87aecfa3c7aa9a1ef8d268aeecda037b98d0 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期六, 23 三月 2024 15:32:42 +0800 Subject: [PATCH] 采购订单,修改top行点击 --- 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