mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: refactor add view
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user