Commit 64d7cf82 by guomingpang

feat:增加微信环境扫码登陆租户配置上限缺省图

parent f6c3fb7e
......@@ -64,11 +64,12 @@ class Axios {
})
instance.interceptors.response.use((response: AxiosResponse): AxiosResponse | AxiosPromise => {
const { message: ResMessage, success, resultMsg, resultCode } = response.data;
const { message: ResMessage, success, resultMsg, resultCode,code } = response.data;
if (success || resultCode === 0) {
return response;
}else if(resultCode=== 'DEPLOY_CROP_ADD_USER_NO'){
window.location.replace("/#/empty-page")
}else if(code === 'DEPLOY_CROP_ADD_USER_NO'){
window.location.replace("/wechat-common/#/empty-page")
return Promise.reject(response.data)
}
message.error(ResMessage || resultMsg);
return Promise.reject(response.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment