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

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

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