This commit is contained in:
橙子
2021-10-17 18:53:42 +08:00
parent 8ede7bab16
commit efbe3f84c1
3 changed files with 15 additions and 0 deletions

View File

@@ -50,6 +50,15 @@ myaxios.interceptors.response.use(async function(response) {
store.dispatch("closeLoad");
return resp;
}, function(error) {
const resp = error.response.data
if (resp.code == undefined && resp.msg == undefined) {
vm.$dialog.notify.error("错误代码:无,原因:与服务器失去连接", {
position: "top-right",
timeout: 5000,
});
}
store.dispatch("closeLoad");
return Promise.reject(error);
});