zs 2 years ago
parent
commit
d42357ebc5
1 changed files with 8 additions and 0 deletions
  1. 8 0
      pagesMy/order/index.vue

+ 8 - 0
pagesMy/order/index.vue

@@ -271,6 +271,14 @@
 				that.$set(that.tabs, `active`, e.active)
 				that.$set(that, `status`, e.active);
 				that.search()
+			},
+			// 清空列表
+			clearPage() {
+				const that = this;
+				that.$set(that, `list`, [])
+				that.$set(that, `skip`, 0)
+				that.$set(that, `limit`, 5)
+				that.$set(that, `page`, 0)
 			}
 		}
 	}