From 6e9d903a293900b8d573a2626f60dc98b7f24c28 Mon Sep 17 00:00:00 2001 From: admin <> Date: Mon, 9 Sep 2024 14:32:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/auth.ts | 2 +- .../NavBar/components/NavbarAction.vue | 4 ++-- src/plugins/permission.ts | 10 +++++++++- src/views/login/index.vue | 18 +++++++++--------- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index c79d7eb..7010ae8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "在生万有货场ERP后台", + "name": "在生万有抖音后台", "version": "1.0.0", "private": true, "type": "module", diff --git a/src/api/auth.ts b/src/api/auth.ts index 1828ef3..7c53ac5 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -17,7 +17,7 @@ class AuthAPI { /** 注销 接口*/ static logout() { return request({ - url: `/api/user/logOut`, + url: `/api/admin/logOut`, method: "POST", }); } diff --git a/src/layout/components/NavBar/components/NavbarAction.vue b/src/layout/components/NavBar/components/NavbarAction.vue index 0e25572..66601dc 100644 --- a/src/layout/components/NavBar/components/NavbarAction.vue +++ b/src/layout/components/NavBar/components/NavbarAction.vue @@ -71,8 +71,8 @@ :src="userStore.user.avatar + '?imageView2/1/w/80/h/80'" class="rounded-full mr-10px w24px w24px" /> --> - - admin + + {{ userStore.user.userInfo.name }}