diff --git a/common/http.interceptor.js b/common/http.interceptor.js index fd582cf..24fd54d 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -45,20 +45,22 @@ const install = (Vue, vm) => { let pathname = window.location.pathname; window.location.href = origin + pathname; }, 1500) + } else { + uni.showToast({ + icon: "none", + title: res?.data?.errmsg + }) } return false; } else { - uni.showToast({ - icon: "none", - title: res?.data?.errmsg - }) + return res.data; } } else { - uni.showToast({ - icon: "none", - title: res.statusCode - }) + // uni.showToast({ + // icon: "none", + // title: res.statusCode + // }) return false; }