当自动化代码报错时不下载

This commit is contained in:
pixel
2020-11-02 11:02:25 +08:00
parent 024f461e94
commit 511a187f49
2 changed files with 4 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ service.interceptors.response.use(
if (response.data.data && response.data.data.reload) {
store.commit('user/LoginOut')
}
return response.data.msg
return response.data.msg ? response.data : response
}
},
error => {