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