管理端,发布活动标题限制不能仅输入空格

dev
QB 2024-08-16 19:00:50 +08:00
parent badd59d59d
commit bb9cbd0519
2 changed files with 11 additions and 1 deletions

View File

@ -162,6 +162,16 @@
max: 20,
message: '标题长度在 5 到 20 个字符',
trigger: 'blur'
},
{
validator: (rule, value, callback) => {
if (value.trim() === '') {
callback(new Error('活动标题不能只包含空格'));
} else {
callback();
}
},
trigger: 'blur'
}
],
acContent: [{

View File

@ -228,7 +228,7 @@ function timeAgo(input) {
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${year}.${month}.${day}`;
}
}
const scrolltolower = async () => {
console.log("加载新数据:");
//