fix: no error dropped while course creation failed

This commit is contained in:
2024-07-28 01:59:31 +08:00
parent 8f4f2b6596
commit 404888f61f

View File

@@ -91,7 +91,7 @@ const onCreateCourseSubmit = async (event: FormSubmitEvent<CreateCourseSchema>)
} else {
toast.add({
title: '创建失败',
description: '未知错误',
description: res.msg || '未知错误',
color: 'red',
icon: 'i-tabler-alert-triangle',
})