wangxy hai 1 mes
pai
achega
bc8e638be0
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      pages/admin/zijiazheng/index.vue

+ 6 - 2
pages/admin/zijiazheng/index.vue

@@ -45,8 +45,12 @@
 		range: []
 	})
 	onLoad((options) => {
-		data.range[0] = options.startDate;
-		data.range[1] = options.endDate;
+		if (options.startDate) {
+			data.range[0] = options.startDate;
+		}
+		if (options.endDate) {
+			data.range[1] = options.endDate;
+		}
 		if (data.range.length) {
 			getZigongsiList()
 		}