Browse Source

bug 修复

lilei 4 years ago
parent
commit
40c3767b11

+ 1 - 1
pages/spotCheckConfigure/evaluateItem.vue

@@ -36,7 +36,7 @@
 			}
 		},
 		onLoad(opts) {
-			this.checkedList = opts.item&&JSON.parse(opts.item)
+			this.checkedList = opts.item&&JSON.parse(opts.item)||[]
 			findAllItem().then(res=>{
 				if(res.status == 200){
 					this.items = res.data

+ 1 - 1
pages/spotCheckConfigure/evaluateStore.vue

@@ -31,7 +31,7 @@
 			}
 		},
 		onLoad(opts) {
-			this.value = opts.item&&JSON.parse(opts.item)
+			this.value = opts.item&&JSON.parse(opts.item)||[]
 			// 查询门店
 			findStoreList({}).then(res=>{
 				console.log(res.data)