|
|
@@ -730,7 +730,6 @@ export default {
|
|
|
this.lat = '';
|
|
|
this.lon = '';
|
|
|
}
|
|
|
-
|
|
|
if (localStorage.getItem('outvstoreLabelTypes') != null) {
|
|
|
this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
|
|
|
} else {
|
|
|
@@ -739,14 +738,13 @@ export default {
|
|
|
|
|
|
if (localStorage.getItem('outvstoreCategoryList') != null) {
|
|
|
this.result = localStorage.getItem('outvstoreCategoryList').split(',');
|
|
|
- this.storeLabelTypes = [];
|
|
|
this.storeCategoryList = this.result.join(',');
|
|
|
} else {
|
|
|
this.result = [];
|
|
|
this.storeCategoryList = this.result.join(',');
|
|
|
}
|
|
|
- this.chainCode = localStorage.getItem('outvchainCode');
|
|
|
- this.storeName = localStorage.getItem('outvstoreName');
|
|
|
+ this.chainCode = localStorage.getItem('outvchainCode') || '';
|
|
|
+ this.storeName = localStorage.getItem('outvstoreName') || '';
|
|
|
if (
|
|
|
(from.path == '/My/index' && to.path == '/outsidelist/index') ||
|
|
|
(from.path == '/home' && to.path == '/outsidelist/index') ||
|
|
|
@@ -804,8 +802,8 @@ export default {
|
|
|
this.result = [];
|
|
|
this.storeCategoryList = this.result.join(',');
|
|
|
}
|
|
|
- this.chainCode = localStorage.getItem('outvchainCode');
|
|
|
- this.storeName = localStorage.getItem('outvstoreName');
|
|
|
+ this.chainCode = localStorage.getItem('outvchainCode') || '';
|
|
|
+ this.storeName = localStorage.getItem('outvstoreName') || '';
|
|
|
if (localStorage.getItem('tabVal') == null || this.$route.query.info != 'y') {
|
|
|
if (this.$route.query.info != undefined) {
|
|
|
if (this.$route.query.info.indexOf('y') != -1) {
|
|
|
@@ -2233,11 +2231,12 @@ export default {
|
|
|
// });
|
|
|
// }
|
|
|
}
|
|
|
+ debugger;
|
|
|
localStorage.setItem('outvstoreName', this.storeName);
|
|
|
localStorage.setItem('outvchainName', this.chainName);
|
|
|
localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
|
|
|
localStorage.setItem('outvstoreCategoryList', this.result);
|
|
|
- localStorage.setItem('outvchainCode', this.chainCode);
|
|
|
+ localStorage.setItem('outvchainCode', this.chainCode == 'null' ? '' : this.chainCode);
|
|
|
this.onSearch();
|
|
|
},
|
|
|
tabChange(name) {
|