From 4e5f6381bfedbbd8060101f2b63be46cf1c81a0a Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 17:22:53 +0800
Subject: [PATCH] 修改供应商列表分页的设置
---
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