|
@@ -64,7 +64,7 @@ export default {
|
|
|
...mapActions(["setSelectInfo", "reSetSelectInfo"]),
|
|
...mapActions(["setSelectInfo", "reSetSelectInfo"]),
|
|
|
init(){
|
|
init(){
|
|
|
if (this.autoLoad) {
|
|
if (this.autoLoad) {
|
|
|
- this.initStorageData();
|
|
|
|
|
|
|
+ this.initDataFromStroage();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//放到仓库
|
|
//放到仓库
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//取出缓存数据
|
|
//取出缓存数据
|
|
|
- initStorageData() {
|
|
|
|
|
|
|
+ initDataFromStroage() {
|
|
|
let currentInfo = uni.getStorageSync('selectList_'+this.selectJobType+'_target_'+this.selectJobId)
|
|
let currentInfo = uni.getStorageSync('selectList_'+this.selectJobType+'_target_'+this.selectJobId)
|
|
|
if(!this.$util.isEmpty(currentInfo)){
|
|
if(!this.$util.isEmpty(currentInfo)){
|
|
|
this.setSelectInfo({ selectJobType: this.selectJobType, info: currentInfo,selectJobId:this.selectJobId })
|
|
this.setSelectInfo({ selectJobType: this.selectJobType, info: currentInfo,selectJobId:this.selectJobId })
|