Преглед изворни кода

[Bugfix 0000] 修复塔山首页部分模块报错的问题

wangkeyi пре 2 дана
родитељ
комит
7dd4e7f5b2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/vent/home/configurable/components/preset/SelectCs.vue

+ 2 - 2
src/views/vent/home/configurable/components/preset/SelectCs.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="select-cs">
-    <div class="select-item">
+    <div v-if="config && config.switch1 && config.switch2 && config.switch3" class="select-item">
       <div class="select-item-box">
         <a-select v-model:value="selectVal" :bordered="false" style="width: 100%">
           <a-select-option v-for="item in options" :key="item.value" :value="item.value">{{ item.label }}</a-select-option>
@@ -16,7 +16,7 @@
         <span>{{ config.switch1.label[1] }}</span>
       </div>
     </div>
-    <div class="select-item">
+    <div v-if="config && config.switch2 && config.switch3" class="select-item">
       <div class="select-item-box1">
         <span>{{ config.switch2.label[0] }}</span>
         <a-switch