Commit 2a970119 by 程默

fix session

parent dc270954
......@@ -41,10 +41,9 @@ export default {
Object.assign(this.$data, this.$options.data());
this.options = options;
if(options.sessionid){
wx.setStorageSync({
key: "sessionid",
data: options.sessionid
});
try {
wx.setStorageSync('sessionid', options.sessionid)
} catch (e) { }
}
console.log("onload");
this.init();
......
......@@ -32,10 +32,9 @@ export default {
this.options_isCard= options.isCard;
this.options_isCardTitle= options.isCardTit;
if(options.sessionid){
wx.setStorageSync({
key: "sessionid",
data: options.sessionid
});
try {
wx.setStorageSync('sessionid', options.sessionid)
} catch (e) { }
}
let that = this;
wx.getStorage({
......
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