Browse Source

Merge branch 'develop' of gitadmin/tuoheng_pilot_web into release

release
zhangtao 1 year ago
parent
commit
c85b3dec76
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/utils/http/interceptors.js

+ 4
- 0
src/utils/http/interceptors.js View File

@@ -41,6 +41,10 @@ export function setupInterceptor(service) {
case -1:
$message.error(response.data.msg)
break
case -2:
$message.error(response.data.msg)
signoutRedirect()
break
case 401:
// 未登录(可能是token过期或者无效了)
signoutRedirect()

Loading…
Cancel
Save