Commit affa2a4e by 程默

ff

parent 5483a132
......@@ -48,8 +48,13 @@ export default {
},
},
onLoad(options) {
console.log('onload')
let ss = wx.getStorageSync("sessionid");
this.ss = ss ? `&sessionid=${ss}` : "";
if (!ss) {
this.params += this.params.includes("logOut") ? "" : "&logOut=true";
}
// tabbar 跳转
let homeIndex = checkTabbarPage("/");
homeIndex != 0 && homeIndex == this.index && (this.index = 0);
......@@ -61,16 +66,14 @@ export default {
}
},
onShow() {
console.log('onshow')
// 登录态更新
let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`;
} else if (!ss) {
this.params += this.params.includes("logOut") ? "" : "&logOut=true";
}
if (!noLoginListPath.includes(this.page)) {
this.timestamp = `&timestamp=${new Date().getTime()}`;
}
// let ss = wx.getStorageSync("sessionid");
// if (!this.ss && ss) {
// this.ss = `&sessionid=${ss}`;
// } else if (!ss) {
// this.params += this.params.includes("logOut") ? "" : "&logOut=true";
// }
},
methods: {
handleError(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment