mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 00:50:05 +00:00
Remove unnecessary dialog ref
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
import ReportIssuePanel from '@/components/dialog/content/error/ReportIssuePanel.vue'
|
||||
@@ -11,7 +11,6 @@ import { useDialogStore } from '@/stores/dialogStore'
|
||||
import BaseViewTemplate from '@/views/templates/BaseViewTemplate.vue'
|
||||
|
||||
const router = useRouter()
|
||||
const dialog = ref(null)
|
||||
const dialogStore = useDialogStore()
|
||||
|
||||
onMounted(() => {
|
||||
@@ -20,9 +19,7 @@ onMounted(() => {
|
||||
component: ReportIssuePanel,
|
||||
title: 'Report an issue',
|
||||
dialogComponentProps: {
|
||||
onClose: () => {
|
||||
router.push('/')
|
||||
}
|
||||
onClose: () => router.push('/')
|
||||
},
|
||||
props: {
|
||||
errorType: 'desktop',
|
||||
@@ -35,6 +32,5 @@ onMounted(() => {
|
||||
]
|
||||
}
|
||||
})
|
||||
dialog.value = useDialogStore().dialogStack[0]
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user