fix: error when push

This commit is contained in:
oat 2023-12-13 16:42:32 +07:00
parent bc3b8f9ca7
commit b6b1a5b6bf

View file

@ -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"
/>