From 81e10fbf93438dd4e3eb67cbede19c33d4a821b0 Mon Sep 17 00:00:00 2001 From: niyyzf Date: Tue, 2 Jul 2024 18:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=88=90admin=E5=88=87=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LoongPanel-Asp/Properties/launchSettings.json | 2 +- web/.env.development | 2 +- web/components/shell/SideBar.vue | 8 ++++---- web/pages/inspectionRecords.vue | 2 +- web/pages/settings.vue | 2 +- web/types/UserType.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LoongPanel-Asp/Properties/launchSettings.json b/LoongPanel-Asp/Properties/launchSettings.json index 07f55f2..1ef89eb 100755 --- a/LoongPanel-Asp/Properties/launchSettings.json +++ b/LoongPanel-Asp/Properties/launchSettings.json @@ -14,7 +14,7 @@ "dotnetRunMessages": true, "launchBrowser": false, "launchUrl": "swagger", - "applicationUrl": "http://127.0.0.1:5000", + "applicationUrl": "http://192.168.0.13:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/web/.env.development b/web/.env.development index 26bfb86..a296a1c 100644 --- a/web/.env.development +++ b/web/.env.development @@ -1 +1 @@ -NUXT_API_URL="http://127.0.0.1:5000" \ No newline at end of file +NUXT_API_URL="http://192.168.0.13:5000" \ No newline at end of file diff --git a/web/components/shell/SideBar.vue b/web/components/shell/SideBar.vue index ad86e31..50c201f 100755 --- a/web/components/shell/SideBar.vue +++ b/web/components/shell/SideBar.vue @@ -35,8 +35,8 @@ const Menus =ref([ ]) const filteredMenus=computed(()=>{ return Menus.value.filter(menu=>{ - const role=mainLayoutStore.UserInfo.Role - return menu.label!=="账号列表"&&role!="admin" + const role=mainLayoutStore.UserInfo.role + return menu.label === "账号列表" ? role === "Admin" : true; }) }) onMounted(() => { @@ -139,7 +139,7 @@ const logout=()=>{ 'Authorization': 'Bearer ' + useCookie('token').value }, baseURL: useRuntimeConfig().public.baseUrl - }).then(res=>{ + }).then(()=>{ navigateTo("/SignIn") }) } @@ -164,7 +164,7 @@ const logout=()=>{

搜索