Преглед на файлове

fix: 重新登录提示

wanggaokun преди 3 седмици
родител
ревизия
a484afb6e4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/axios/config.ts

+ 1 - 1
src/axios/config.ts

@@ -29,7 +29,7 @@ const defaultResponseInterceptors = (response: AxiosResponse) => {
     userStore.clear()
     authStore.clear()
     router.replace(LOGIN_URL)
-    ElMessage.error(msg)
+    ElMessage.warning('认证失效,请重新登录!')
   } else {
     console.error(msg)
     ElMessage.error(msg)