Skip to content

Commit fa3b7a3

Browse files
committed
refactor: refactor add view
1 parent 9cd92dc commit fa3b7a3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

frontend/src/views/dashboard/common/AddViewDashboard.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts" setup>
2-
import { onMounted, reactive, ref, h } from 'vue'
2+
import { reactive, ref, h } from 'vue'
33
import { ElButton, ElMessage } from 'element-plus-secondary'
44
import {
55
findNextComponentIndex,
@@ -16,6 +16,7 @@ const { t } = useI18n()
1616
const resource = ref(null)
1717
1818
const optInit = (viewInfo: any) => {
19+
initDashboardList()
1920
resourceDialogShow.value = true
2021
state.viewInfo = viewInfo
2122
}
@@ -181,10 +182,6 @@ const initDashboardList = () => {
181182
})
182183
}
183184
184-
onMounted(() => {
185-
initDashboardList()
186-
})
187-
188185
defineExpose({
189186
optInit,
190187
})

0 commit comments

Comments
 (0)