mirror of https://github.com/halo-dev/halo
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
parent
ed14fcb5f4
commit
0c3e5a760a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue