|
@@ -59,7 +59,11 @@ const handleTabClick = (activeKey: string | number) => {
|
|
|
<div class="device-group-container">
|
|
|
<ATabs class="device-group-tab" v-model:active-key="activeKey" @tab-click="handleTabClick">
|
|
|
<ATabPane v-for="item in aiSmartCtrlTabs" :key="item.key" :tab="item.name">
|
|
|
- <component v-if="renderView" :is="item.component" :device-group-id="Number(deviceGroupId)" />
|
|
|
+ <component
|
|
|
+ v-if="activeKey === item.key && renderView"
|
|
|
+ :is="item.component"
|
|
|
+ :device-group-id="Number(deviceGroupId)"
|
|
|
+ />
|
|
|
</ATabPane>
|
|
|
</ATabs>
|
|
|
</div>
|