fix: error when push
This commit is contained in:
parent
bc3b8f9ca7
commit
b6b1a5b6bf
1 changed files with 2 additions and 1 deletions
|
|
@ -165,6 +165,7 @@ const file = ref<File | undefined>()
|
|||
: ''
|
||||
"
|
||||
id="inputFile"
|
||||
:rules="[(v) => v != undefined || 'โปรดอัพโหลดไฟล์']"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<q-icon name="attach_file" />
|
||||
|
|
@ -180,7 +181,7 @@ const file = ref<File | undefined>()
|
|||
class="q-my-sm"
|
||||
placeholder="กรอกชื่อเรื่อง"
|
||||
:model-value="title"
|
||||
:rules="[(v) => v.length > 3 || 'ชื่อต้องยาวกว่า 3 ตัวอักษร']"
|
||||
:rules="[(v) => (v != undefined && v.length > 3) || 'ชื่อต้องยาวกว่า 3 ตัวอักษร']"
|
||||
@update:model-value="(v) => $emit('update:title', v)"
|
||||
id="inputTitle"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue