Commit cce513fe authored by mengcuiguang's avatar mengcuiguang

个人中心 onshow刷新

parent 9072dbb2
...@@ -116,18 +116,18 @@ ...@@ -116,18 +116,18 @@
} }
}, },
onShow() { onShow() {
// try { try {
// // 在子组件重写show()代替onShow() // 在子组件重写show()代替onShow()
// if (this.currentPage == 0) { if (this.currentPage == 0) {
// this.$refs.index.show(); // this.$refs.index.show();
// } else if (this.currentPage == 1) { } else if (this.currentPage == 1) {
// this.$refs.recommend.show(); // this.$refs.recommend.show();
// } else if (this.currentPage == 2) { } else if (this.currentPage == 2) {
// this.$refs.user.show(); this.$refs.user.show();
// } }
// } catch (e) { } catch (e) {
// } }
}, },
mounted() { mounted() {
// 渲染完成 初始化首页数据 // 渲染完成 初始化首页数据
......
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