This commit is contained in:
@@ -106,10 +106,14 @@
|
||||
this.onRefresh()
|
||||
},
|
||||
onShow() {
|
||||
uni.$once('refreshData', () => {
|
||||
uni.$on('refreshData', () => {
|
||||
this.onRefresh()
|
||||
});
|
||||
},
|
||||
// 页面卸载时移除事件监听器
|
||||
onUnload() {
|
||||
uni.$off('refreshData');
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack();
|
||||
|
Reference in New Issue
Block a user