|
|
@@ -285,6 +285,11 @@ export default {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ if (this.getQueryString("tenantId")) {
|
|
|
+ sessionStorage.setItem("tenantId", this.getQueryString("tenantId"));
|
|
|
+ }else{
|
|
|
+ sessionStorage.removeItem('tenantId')
|
|
|
+ }
|
|
|
const item = JSON.parse(localStorage.getItem("user_account"));
|
|
|
if (item) {
|
|
|
let date = new Date().getTime();
|
|
|
@@ -313,7 +318,8 @@ export default {
|
|
|
return {
|
|
|
param: this.getQueryString("param"),
|
|
|
urlType: this.isMobile ? 1 : 2,
|
|
|
- type: 1
|
|
|
+ type: 1,
|
|
|
+ tenantId:this.getQueryString("tenantId")
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
@@ -328,6 +334,11 @@ export default {
|
|
|
* 微信登入—返回数据
|
|
|
*/
|
|
|
loginBack({ url, user_account }, isSet = true) {
|
|
|
+ if(this.isMobile){
|
|
|
+ if(url.indexOf("pages5") == -1){
|
|
|
+ url = url.replace("pages","pages5")
|
|
|
+ }
|
|
|
+ }
|
|
|
isSet &&
|
|
|
localStorage.setItem(
|
|
|
"user_account",
|