Commit 80e15f3d authored by 刘用法's avatar 刘用法

我的页面切换

parent d3d0f3c0
...@@ -136,10 +136,7 @@ ...@@ -136,10 +136,7 @@
}, },
onLoad() { onLoad() {
app.trackPage('我的首页') app.trackPage('我的首页')
console.log('-------000-------')
if(this.vuex_token ) { if(this.vuex_token ) {
console.log('-------1111-------')
if (!this.showSuperButton) { if (!this.showSuperButton) {
this.allowLogin() this.allowLogin()
} }
......
...@@ -25,9 +25,17 @@ ...@@ -25,9 +25,17 @@
console.log(res) console.log(res)
if (res && res.code == 200) { if (res && res.code == 200) {
this.$u.vuex("vuex_token", res.data); this.$u.vuex("vuex_token", res.data);
const callBack = (vm, result) => {
if (result && result.record) {
uni.navigateBack({ uni.navigateBack({
}) })
} }
};
await getApp().getBaseInfo(this, callBack);
}
}, },
} }
......
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