Commit cce513fe authored by mengcuiguang's avatar mengcuiguang

个人中心 onshow刷新

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