|
|
@@ -681,7 +681,12 @@ export default {
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
this.storeName = localStorage.getItem('outvstoreName');
|
|
|
- this.chainName = localStorage.getItem('outvchainName');
|
|
|
+ if (
|
|
|
+ localStorage.getItem('outvchainName') &&
|
|
|
+ localStorage.getItem('outvchainName') != 'null'
|
|
|
+ ) {
|
|
|
+ this.chainName = localStorage.getItem('outvchainName');
|
|
|
+ }
|
|
|
if (localStorage.getItem('lat') != null) {
|
|
|
this.lat = localStorage.getItem('lat');
|
|
|
this.lon = localStorage.getItem('lon');
|
|
|
@@ -748,7 +753,9 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.storeName = localStorage.getItem('outvstoreName');
|
|
|
- this.chainName = localStorage.getItem('outvchainName');
|
|
|
+ if (localStorage.getItem('outvchainName') && localStorage.getItem('outvchainName') != 'null') {
|
|
|
+ this.chainName = localStorage.getItem('outvchainName');
|
|
|
+ }
|
|
|
if (localStorage.getItem('outvstoreLabelTypes') != null) {
|
|
|
this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
|
|
|
} else {
|