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 @@ -