fix: error occurred when switching tab in dashboard component. (#3770)

#### What type of PR is this?
/kind bug
/area console

#### What this PR does / why we need it:
修复 Console 端仪表盘添加组件时,切换标签页面报错的问题。

#### Which issue(s) this PR fixes:
Fixes #3764 

#### Does this PR introduce a user-facing change?
```release-note
修复 Console 端仪表盘添加组件时的报错问题。
```
pull/3779/head^2
Li 2023-04-18 14:30:57 +08:00 committed by GitHub
parent ed14fcb5f4
commit 0c3e5a760a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -74,10 +74,10 @@
"
type="outline"
></VTabbar>
<div class="mt-4">
<template v-for="(group, groupIndex) in widgetsGroup" :key="groupIndex">
<div v-if="activeId === group.id" class="mt-4">
<grid-layout
v-if="activeId === group.id"
:col-num="12"
:is-draggable="false"
:is-resizable="false"
@ -102,8 +102,8 @@
<component :is="item.widget" />
</grid-item>
</grid-layout>
</div>
</template>
</div>
</VModal>
</template>
<script lang="ts" setup>