mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
fix:增加作业内容不能为空限制
This commit is contained in:
@@ -148,9 +148,8 @@ export default {
|
||||
const publishWork = () => {
|
||||
console.log("点击了发布", workId, type, taskId, fileList);
|
||||
if (!textarea.value) {
|
||||
if (fileList.value.length === 0) {
|
||||
return ElMessage.warning("请输入作业内容");
|
||||
}
|
||||
ElMessage.warning("请输入作业内容")
|
||||
return ;
|
||||
}
|
||||
openLoading();
|
||||
let obj = {
|
||||
|
||||
Reference in New Issue
Block a user