diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 240e92e..47168f4 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -11,7 +11,7 @@ interface Options { export interface LabelValueState { label: string value: any - extend?: string + extra?: string } /** 字典类型 */ diff --git a/src/utils/http.ts b/src/utils/http.ts index 5a86115..eedc113 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -82,8 +82,8 @@ http.interceptors.response.use( async onOk() { NProgress.done() const userStore = useUserStore() - userStore.logoutCallBack() - router.replace('/login') + await userStore.logoutCallBack() + await router.replace('/login') }, }) } else { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 9dc77a4..3fcaa19 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -472,8 +472,7 @@ const onOauth = async (source: string) => { margin-right: 10px; } - .mode:hover, - .mode svg:hover { + .mode:hover { background: rgba(var(--primary-6), 0.05); border: 1px solid rgb(var(--primary-3)); color: rgb(var(--arcoblue-6));