diff --git a/request/request.js b/request/request.js index df36846..709d23b 100644 --- a/request/request.js +++ b/request/request.js @@ -12,6 +12,7 @@ import { loginAPI } from '@/request/index/index.js'; import { HTTP_REQUEST_URL } from '@/config/app.js'; +import { isMiniPrograms } from '@/utils/index.js'; let bm_id = 0; const LoginPromis = () => { @@ -128,10 +129,10 @@ class Request { console.log(infor['data'], 'arraybuffer1-1') resolve(infor['data']); return - } + } if (infor['data']['status'] != 200 && infor['data']['code'] != 7777) { // #ifdef H5 - if (infor['data']['status'] == 110002) { + if (infor['data']['status'] == 110002 && !isMiniPrograms()) { window.location.href = `${HTTP_REQUEST_URL}/JXH5/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`; // window.location.href = `http://10.210.254.176:8081/JXH5/#/pages/users/h5_login/index?redirectUri=${window.location.protocol + "//" + window.location.host}/privilege/pages/restaurant/home/shop_home/shop_home`; } diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index a2258d0..a71bb1f 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@