课程模块部分bug修复
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user