From ff2495ebeb101c25679ef5a7f87134586c621f99 Mon Sep 17 00:00:00 2001 From: lijun Date: Mon, 25 Nov 2024 23:28:11 +0800 Subject: [PATCH] update code --- src/api/user/index.ts | 2 +- src/layout/components/NavBar/components/NavbarRight.vue | 2 +- src/layout/components/NavBar/components/NavbarRight2.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/user/index.ts b/src/api/user/index.ts index da4c7f9..9f55bde 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -20,7 +20,7 @@ class UserAPI { request({ url: "/users/current", method: "get", - }).then(res =>{ + }).then((res:any) =>{ resolve({ "userId": res.data.data.user_id, "username": res.data.data.user_name, diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index a335527..f1fbb47 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -43,7 +43,7 @@ -