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=()=>{

搜索