dedsudiyu před 1 měsícem
rodič
revize
e655edfd29
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/views/courtyardManage/courtyardHome.vue

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

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