修改首页和登录页统计接口逻辑
This commit is contained in:
+3
-3
@@ -32,14 +32,14 @@ export const REQUES_ERROR_CODES = {
|
||||
let no_login_show_modal_state = false
|
||||
// 去登录方法
|
||||
export const goto_login_fun = () => {
|
||||
// if (no_login_show_modal_state) return;
|
||||
if (no_login_show_modal_state) return;
|
||||
no_login_show_modal_state = true
|
||||
common.hideLoading()
|
||||
common.show('未登录', '现在去登录').then(() => {
|
||||
common.navigateTo('/pages/login/login')
|
||||
}).finally(() => {
|
||||
no_login_show_modal_state = false
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ export default function request({
|
||||
return reject(res)
|
||||
},
|
||||
fail(res) {
|
||||
console.log('131231', res, url, base_url);
|
||||
console.log('请求错误', res, url, base_url);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user