代码优化

This commit is contained in:
BianLzhaoMin 2025-03-11 11:23:18 +08:00
parent 1c870c7b51
commit 5af27bd5ad
2 changed files with 24 additions and 13 deletions

View File

@ -37,6 +37,8 @@
placeholder="请输入内容"
class="input-content"
style="min-height: 30vh"
count
maxlength="500"
/>
</up-form-item>
@ -117,13 +119,18 @@ const opinionRules = ref({
message: '请填写正确的手机号码',
},
],
options: {
type: 'string',
required: true,
message: '请填写意见',
trigger: ['blur', 'change'],
max: 500,
},
options: [
{
type: 'string',
required: true,
message: '请填写意见',
trigger: ['blur', 'change'],
},
{
max: 500,
message: '字数不能超过500',
},
],
})
//

View File

@ -37,6 +37,8 @@
placeholder="请输入内容"
class="input-content"
style="min-height: 30vh"
:maxlength="3"
count
/>
</up-form-item>
@ -119,12 +121,14 @@ const opinionRules = ref({
message: '请填写正确的手机号码',
},
],
options: {
type: 'string',
required: true,
message: '请填写意见',
trigger: ['blur', 'change'],
},
options: [
{
type: 'string',
required: true,
message: '请填写意见',
trigger: ['blur', 'change'],
},
],
})
//