提交 9b22c32c 编写于 作者: D DebugIsFalse

Merge branch 'main' of gitcode.com:git_bot/ai-fe

...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
<script setup> <script setup>
import { IConfirm } from '#components' import { IConfirm } from '#components'
const { deleteCollection } = useCollectionRequest() const { deleteCollection } = useCollectionRequest()
const emit = defineEmits(['delete'])
const modal = useModal() const modal = useModal()
const props = defineProps({ const props = defineProps({
id: { id: {
...@@ -46,9 +45,9 @@ function handleOpenDelete () { ...@@ -46,9 +45,9 @@ function handleOpenDelete () {
title: '删除确认', title: '删除确认',
description: '确定要删除该合集吗?', description: '确定要删除该合集吗?',
async onSuccess() { async onSuccess() {
modal.close()
await deleteCollection(props.id) await deleteCollection(props.id)
emit('delete') modal.close()
navigateTo('/library')
}, },
onCancel () { onCancel () {
modal.close() modal.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册