作者 朱兆平

http部分request携带登录后得到的TOKEN与后端交互

正在显示 1 个修改的文件 包含 1 行增加1 行删除
@@ -58,7 +58,7 @@ router.beforeEach((to, from, next) => { @@ -58,7 +58,7 @@ router.beforeEach((to, from, next) => {
58 axios.interceptors.response.use( 58 axios.interceptors.response.use(
59 res => { 59 res => {
60 //对响应数据做些事 60 //对响应数据做些事
61 - if (res.data && res.status===200) { 61 + if (res.data && res.status!==200) {
62 this.$message({ 62 this.$message({
63 // 饿了么的消息弹窗组件,类似toast 63 // 饿了么的消息弹窗组件,类似toast
64 showClose: true, 64 showClose: true,