diff --git a/index.html b/index.html index cc932d2..b074294 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,9 @@ + + + SPDM diff --git a/src/api/request.ts b/src/api/request.ts index dad1903..4704ea1 100644 --- a/src/api/request.ts +++ b/src/api/request.ts @@ -13,14 +13,18 @@ const service = axios.create({ }, }); +const company = 'carsafe'; +const userId = $wujie?.props?.USER_ID || localStorage.getItem('USER_ID') || ''; +const token = $wujie?.props?.TOKEN || localStorage.getItem('TOKEN') || ''; +const tenantId = $wujie?.props?.TENANT_ID || localStorage.getItem('TENANT_ID') || ''; + service.interceptors.request.use( (config) => { - config.headers['company'] = 'carsafe'; - config.headers['jobNumber'] = $wujie?.props?.USER_ID || localStorage.getItem('USER_ID') || ''; - config.headers['token'] = $wujie?.props?.TOKEN || localStorage.getItem('TOKEN') || ''; - config.headers['userId'] = $wujie?.props?.USER_ID || localStorage.getItem('USER_ID') || ''; - config.headers['tenantId'] = - $wujie?.props?.TENANT_ID || localStorage.getItem('TENANT_ID') || ''; + config.headers['company'] = company; + config.headers['jobNumber'] = userId; + config.headers['token'] = token; + config.headers['userId'] = localStorage.getItem('YIAN_USER_ID') || userId; + config.headers['tenantId'] = localStorage.getItem('YIAN_TENANT_ID') || tenantId; return config; }, (error) => { diff --git a/src/components/common/dialog/index.vue b/src/components/common/dialog/index.vue index 96f154b..3a854f8 100644 --- a/src/components/common/dialog/index.vue +++ b/src/components/common/dialog/index.vue @@ -20,6 +20,7 @@ transfer :className="bodyClass" :maskClosable="closeOnClickModal" + :zIndex="9999" >