Commit b2018c16 authored by 刘帅阳's avatar 刘帅阳

注释log

parent 868afd64
......@@ -2,7 +2,7 @@ import axios from 'axios'
import { Notification, MessageBox, Message, Loading } from 'element-ui'
import store from '@/store'
import Qs from 'qs'
import { getToken, setToken,removeToken } from '@/utils/auth'
import { getToken, setToken, removeToken } from '@/utils/auth'
import SM4 from './gmUtil'
import errorCode from '@/utils/errorCode'
import { refreshToken } from '@/api/login.js'
......@@ -84,6 +84,11 @@ service.interceptors.response.use(res => {
})
}
if (code === 401) {
Message({
message: '当前登录账号或密码错误',
type: 'error'
})
} else if (code === 410) {
Message({
message: '当前登录无权限,请重新登录',
type: 'error'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment