Explorar o código

fix:未登录提示

magic v %!s(int64=4) %!d(string=hai) anos
pai
achega
6ab5e15c3b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/utils/http/index.js

+ 1 - 0
src/utils/http/index.js

@@ -41,6 +41,7 @@ service.interceptors.response.use(
      */
     const res = response.data
     if (res.code === 508) {
+      Toast.fail(res.message)
       await store.dispatch('Logout')
       // await single.run(() => {
       //   return Dialog.alert({