#132 add status signout

Merged
zhangtao merged 1 commits from zhangtao into develop 1 year ago
  1. +4
    -0
      src/utils/http/interceptors.js

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

case -1: case -1:
$message.error(response.data.msg) $message.error(response.data.msg)
break break
case -2:
$message.error(response.data.msg)
signoutRedirect()
break
case 401: case 401:
// 未登录(可能是token过期或者无效了) // 未登录(可能是token过期或者无效了)
signoutRedirect() signoutRedirect()

Loading…
Cancel
Save