Commit 00100efb authored by liwei's avatar liwei

修改了发布动态的bug

parent cadb56f7
...@@ -77,6 +77,14 @@ ...@@ -77,6 +77,14 @@
isLoginPop: false isLoginPop: false
}; };
}, },
onShow() {
//发布动态后 需要主动刷新一下最近的列表信息
if (uni.getStorageSync("isRefresh")) {
this.current = 1
this.$refs.listItem[1].reload()
uni.setStorageSync("isRefresh", false)
}
},
methods: { methods: {
// swiper滑动结束 // swiper滑动结束
swiperAnimationfinish(e) { swiperAnimationfinish(e) {
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
title: '发表成功', title: '发表成功',
icon: 'success' icon: 'success'
}) })
uni.setStorageSync("isRefresh", true)
setTimeout(() => { setTimeout(() => {
uni.switchTab({ uni.switchTab({
url: '/pages/tab/article', url: '/pages/tab/article',
......
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