소스 검색

Update detail.vue

lex-xin 10 달 전
부모
커밋
e839b4dd8e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/band-guidance-training/detail.vue

+ 2 - 2
src/views/band-guidance-training/detail.vue

@@ -255,7 +255,7 @@ export default {
           tempDirectorTrainingCampId: this.$route.query.id,
           ...more
         }
-        if(citys.length > 0) {
+        if(citys && citys.length > 0) {
           params.provinceCode = citys[0]
           params.cityCode = citys[1]
           params.regionCode = citys[2]
@@ -278,7 +278,7 @@ export default {
           tempDirectorTrainingCampId: this.$route.query.id,
           ...more
         }
-        if(citys.length > 0) {
+        if(citys && citys.length > 0) {
           params.provinceCode = citys[0]
           params.cityCode = citys[1]
           params.regionCode = citys[2]