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