课程模块部分bug修复

This commit is contained in:
2025-07-02 09:43:17 +08:00
parent 927b200cf2
commit 06debc411c
24 changed files with 418 additions and 456 deletions

View File

@ -121,7 +121,6 @@ const handleFileUpload = async (event: Event) => {
message.error('文件上传失败');
previewImage.value = '';
} finally {
// 重置文件输入,允许重复上传同一文件
if (input) input.value = '';
}
};
@ -250,7 +249,7 @@ const updateCourse = () => {
}
// 创建编辑数据的深拷贝副本
editData.value = JSON.parse(JSON.stringify(courseData.value));
previewImage.value = ''; // 进入编辑模式时重置预览图
previewImage.value = '';
isEditing.value = true;
};