From 7045ca2f6b6bcbc3987e388bf0b25281c250ccf5 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 18:09:00 +0800
Subject: [PATCH] srm 新增编辑供应商,启用停用创建账号获取和保存企业/信用等级/供货范围 ,等大概7个接口的联调

---
 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