|
@@ -94,7 +94,9 @@
|
|
onShow() {
|
|
onShow() {
|
|
if(this.$store.state.vuex_hasLogin){
|
|
if(this.$store.state.vuex_hasLogin){
|
|
this.userInfo = this.$store.state.vuex_user;
|
|
this.userInfo = this.$store.state.vuex_user;
|
|
- this.theRoad = this.$store.state.vuex_user.roadList[0]||[];
|
|
|
|
|
|
+ if(this.$store.state.vuex_user.roadList){
|
|
|
|
+ this.theRoad = this.$store.state.vuex_user.roadList[0]||[];
|
|
|
|
+ };
|
|
if(this.theRoad.roadNo){
|
|
if(this.theRoad.roadNo){
|
|
console.log('this.theRoad.roadNo',this.theRoad.roadNo)
|
|
console.log('this.theRoad.roadNo',this.theRoad.roadNo)
|
|
this.handleGetIndex(this.theRoad.roadNo);
|
|
this.handleGetIndex(this.theRoad.roadNo);
|