|
@@ -25,8 +25,8 @@ function checkParams(config) {
|
|
|
...config.params
|
|
|
}
|
|
|
|
|
|
- let {pageSource} = params.params || {};
|
|
|
- if(pageSource) {
|
|
|
+ let { pageSource } = params.params || {};
|
|
|
+ if (pageSource) {
|
|
|
delete params.params.pageSource;
|
|
|
}
|
|
|
|
|
@@ -37,7 +37,7 @@ function checkParams(config) {
|
|
|
appVersionCode,
|
|
|
loginUid: uid,
|
|
|
uid,
|
|
|
- appType:1,
|
|
|
+ appType: 1,
|
|
|
machineCode: mid,
|
|
|
pageSource: pageSource || ''
|
|
|
}
|
|
@@ -50,8 +50,8 @@ function checkParams(config) {
|
|
|
let data = {
|
|
|
...config.data
|
|
|
}
|
|
|
- let {pageSource} = data.params || {};
|
|
|
- if(pageSource) {
|
|
|
+ let { pageSource } = data.params || {};
|
|
|
+ if (pageSource) {
|
|
|
delete data.params.pageSource;
|
|
|
}
|
|
|
|
|
@@ -62,7 +62,7 @@ function checkParams(config) {
|
|
|
appVersionCode,
|
|
|
loginUid: uid,
|
|
|
uid,
|
|
|
- appType:1,
|
|
|
+ appType: 1,
|
|
|
machineCode: mid,
|
|
|
pageSource: pageSource || ''
|
|
|
}
|
|
@@ -74,9 +74,7 @@ function checkParams(config) {
|
|
|
|
|
|
// request拦截器
|
|
|
service.interceptors.request.use(async (config) => {
|
|
|
- if (!userInfo) {
|
|
|
- userInfo = await getChromeStorage('userInfo') || ''
|
|
|
- }
|
|
|
+ userInfo = await getChromeStorage('userInfo') || ''
|
|
|
if (!storage_mid) {
|
|
|
storage_mid = await getChromeStorage('mid') || ''
|
|
|
}
|
|
@@ -112,7 +110,7 @@ service.interceptors.response.use(
|
|
|
}
|
|
|
)
|
|
|
break;
|
|
|
- }
|
|
|
+ }
|
|
|
return res
|
|
|
},
|
|
|
error => {
|