添加版本检查代码, 流程管理页面空数据处理
This commit is contained in:
@@ -42,7 +42,6 @@ const request = (url: string, options: any, config = { showLoading: true, showEr
|
||||
if (request.data?.err_code === 0) {
|
||||
//
|
||||
resolve(request.data);
|
||||
return;
|
||||
} else {
|
||||
if (config.showError != false) {
|
||||
wx.showToast({
|
||||
@@ -60,8 +59,8 @@ const request = (url: string, options: any, config = { showLoading: true, showEr
|
||||
goIndexPage();
|
||||
}
|
||||
}
|
||||
reject(request.data);
|
||||
}
|
||||
reject();
|
||||
},
|
||||
fail(error: any) {
|
||||
if (config.showLoading != false) {
|
||||
@@ -239,12 +238,9 @@ export const login = (encryptedData: any, iv: any, type?: any, company_id?: any)
|
||||
// wx.removeStorageSync("loginExp");
|
||||
if (type == 4) {
|
||||
checkSesskey()
|
||||
.then((res) => {
|
||||
resolve(res);
|
||||
})
|
||||
.catch(() => {
|
||||
reject(err);
|
||||
});
|
||||
.then(() => {})
|
||||
.catch(() => {});
|
||||
reject(err);
|
||||
} else {
|
||||
reject(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user