From 6aef2cd1428f6f041b615a1188d2f22545a0ce18 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Mon, 14 Apr 2025 18:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(market):=20=E8=A1=A5=E5=85=85=E7=BA=BF?= =?UTF-8?q?=E7=B4=A2=E6=A0=87=E9=A2=98=E7=9A=84=E8=A1=A8=E5=8D=95=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在线索添加表单中增加了对标题的必填验证 - 如果用户未填写标题,提交时会显示提示信息 --- pages/market/clue/add_clues.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/market/clue/add_clues.vue b/pages/market/clue/add_clues.vue index 6de92ce..3101c14 100644 --- a/pages/market/clue/add_clues.vue +++ b/pages/market/clue/add_clues.vue @@ -532,6 +532,13 @@ export default { //表单验证 async validatorForm(data) { + if(!data.title){ + uni.showToast({ + title: '线索标题必填', + icon: 'none' + }) + return false + } if(!data.student_name){ uni.showToast({ title: '学员姓名必填',