dedsudiyu 1 개월 전
부모
커밋
e655edfd29
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/courtyardManage/courtyardHome.vue

+ 3 - 0
src/views/courtyardManage/courtyardHome.vue

@@ -240,6 +240,9 @@
       /**V3新--------------start----**/
       // 切换轮播
       checkedNumButton(type) {
+        if(!this.deptId){
+          return
+        }
         if (type != this.checkedNum) {
           this.$set(this, 'checkedNum', type)
           this.$set(this.$refs['el-carousel'], 'activeIndex', type)