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