【GFRS-3645】生成电子合同接口对接 接口封装的token拦截方法修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-09 17:44:08 +08:00
parent d49fd76db9
commit 38a051fae4
5 changed files with 42 additions and 9 deletions

View File

@@ -220,7 +220,7 @@ service.interceptors.request.use(
let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //判断是否是 android终端
if (isAndroid) {
// setTimeout(() => {
if (window.location.hash !== '#/my/privacyPolicy') {
if (window.location.hash !== '#/my/privacyPolicy' && window.location.hash !== '#/YB_agentSign/step1' && window.location.hash !== '#/YB_agentSign/step2') {
console.log(window.Android.getToken(), 'Android获取token')
CacheUtils.setLocItem('token', window.Android.getToken())
}