From 43fca2cb16964496caafdbc34e969d2a7cde7cc0 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 30 三月 2023 15:32:56 +0800
Subject: [PATCH] 用户接口

---
 src/router/backEnd.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/router/backEnd.ts b/src/router/backEnd.ts
index fcec8e0..12240fc 100644
--- a/src/router/backEnd.ts
+++ b/src/router/backEnd.ts
@@ -27,7 +27,7 @@
 export async function initBackEndControlRoutes() {
     if (window.nextLoading === undefined) NextLoading.start();
     if (!Cookies.get('token')) return false;
-    const res = await getBackEndControlRoutes(Cookies.get('projectId') === null ? '' : Cookies.get('projectId'));
+    const res = await getBackEndControlRoutes();
     await useRequestOldRoutes().setRequestOldRoutes(JSON.parse(JSON.stringify(res.data.data)));
     dynamicRoutes[0].children = await backEndComponent(res.data.data);
     await setAddRoute();
@@ -57,11 +57,11 @@
     });
 }
 
-export async function getBackEndControlRoutes(value: string) {
+export async function getBackEndControlRoutes() {
     // const stores = useUserInfo(pinia);
     // const { userInfos } = storeToRefs(stores);
     // const auth = userInfos.value.roles[0];
-    return menuApi.getMenuAdmin(value);
+    return menuApi.getMenuAdmin();
 }
 
 /**
@@ -70,7 +70,7 @@
  * @description 路径:/src/views/system/homeMenu/components/menuDialog.vue
  */
 export function setBackEndControlRefreshRoutes() {
-    getBackEndControlRoutes(Cookies.get('projectId'));
+    getBackEndControlRoutes();
 }
 
 export function backEndComponent(routes: any) {

--
Gitblit v1.9.2