Sfoglia il codice sorgente

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug

1004749546@qq.com 4 anni fa
parent
commit
2bb5bad5fd
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      pages/toDoList/toDoList.vue

+ 8 - 1
pages/toDoList/toDoList.vue

@@ -158,11 +158,15 @@
 				});
 				// #endif
 			}
+			// 监听新增后刷新
 			uni.$on('refreshBL',this.refresh)
-			this.pageInit()
+			// 监听待办处理后刷新
+			uni.$on('refreshBl-handle',this.handleRefresh)
+			this.pageInit() 
 		},
 		onUnload() {
 			uni.$off('refreshBL',this.refresh)
+			uni.$off('refreshBl-handle',this.handleRefresh)
 		},
 		methods:{
 			pageInit () {
@@ -171,6 +175,9 @@
 				this.pageNo = 1
 				this.getRow()
 			},
+			handleRefresh() {
+				this.getRow()
+			},
 			// tabs通知swiper切换
 			tabsChange(index) {
 				this.swiperCurrent = index;