84316831 by simon

no message

1 parent 80b25105
......@@ -8,6 +8,7 @@ import router from '@/router'
import {
getToken,
setToken,
removeToken
} from '@/utils/auth'
// axios的默认url
......@@ -49,7 +50,7 @@ axios.interceptors.response.use(
if (response.data.code === 200) {
return Promise.resolve(response);
} else {
if (typeof (opt.toast) == "undefined" || opt.toast) {
if (typeof (opt) == "undefined" || typeof (opt.toast) == "undefined" || opt.toast) {
Toast(response.data.errMsg);
}
switch (response.data.code) {
......