mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 20:06:49 +08:00
fix:作业提交内容不能为空限制
This commit is contained in:
@@ -524,7 +524,7 @@ const showFileList = computed(() => {
|
||||
});
|
||||
|
||||
const handleClick = () => {
|
||||
console.log(fileList.value, uploadRef.value);
|
||||
console.log(fileList.value, uploadRef.value,sbValue.value.content);
|
||||
// 判断当前学员作业成绩是否已经导入,如果已经导入成绩,则不允许其再次上传作业
|
||||
if(submitScore.value){
|
||||
ElMessage.warning("您的作业成绩已出,不能重复上传");
|
||||
@@ -532,11 +532,10 @@ const handleClick = () => {
|
||||
}
|
||||
|
||||
if (!sbValue.value.content) {
|
||||
if (fileList.value.length === 0) {
|
||||
return ElMessage.warning("请输入作业内容");
|
||||
}
|
||||
ElMessage.warning("请输入作业内容");
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
loading.value = ElLoading.service({
|
||||
lock: true,
|
||||
text: "Loading",
|
||||
|
||||
Reference in New Issue
Block a user