refactor: refactor add view

This commit is contained in:
wangjiahao
2025-08-06 14:45:59 +08:00
parent 9cd92dc12c
commit fa3b7a39f6
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { onMounted, reactive, ref, h } from 'vue'
import { reactive, ref, h } from 'vue'
import { ElButton, ElMessage } from 'element-plus-secondary'
import {
findNextComponentIndex,
@@ -16,6 +16,7 @@ const { t } = useI18n()
const resource = ref(null)
const optInit = (viewInfo: any) => {
initDashboardList()
resourceDialogShow.value = true
state.viewInfo = viewInfo
}
@@ -181,10 +182,6 @@ const initDashboardList = () => {
})
}
onMounted(() => {
initDashboardList()
})
defineExpose({
optInit,
})