소스 검색

fix:未登录提示

magic v 4 년 전
부모
커밋
6ab5e15c3b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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({