fix:作业提交内容不能为空限制

This commit is contained in:
wyx
2023-03-23 20:25:17 +08:00
parent b0d6eb57f6
commit bd9ac570f1

View File

@@ -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",