소스 검색

auto commit

gcz 4 년 전
부모
커밋
dbef047d0b
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pages/index/index.vue

+ 3 - 1
pages/index/index.vue

@@ -94,7 +94,9 @@
 		onShow() {
 			if(this.$store.state.vuex_hasLogin){
 				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){
 					console.log('this.theRoad.roadNo',this.theRoad.roadNo)
 					this.handleGetIndex(this.theRoad.roadNo);