fix: can't submit when edit file info
This commit is contained in:
parent
d91b410229
commit
66e2237b81
1 changed files with 4 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ const file = ref<File | undefined>()
|
||||||
: ''
|
: ''
|
||||||
"
|
"
|
||||||
id="inputFile"
|
id="inputFile"
|
||||||
:rules="[(v) => v != undefined || 'โปรดอัปโหลดไฟล์']"
|
:rules="[(v) => (v !== undefined || mode === 'edit' ) || ('โปรดอัปโหลดไฟล์')]"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon name="attach_file" />
|
<q-icon name="attach_file" />
|
||||||
|
|
@ -258,6 +258,9 @@ const file = ref<File | undefined>()
|
||||||
color="primary"
|
color="primary"
|
||||||
:disable="error.fileName2Long"
|
:disable="error.fileName2Long"
|
||||||
id="submitFile"
|
id="submitFile"
|
||||||
|
@click="()=> {
|
||||||
|
console.log(file?.name)
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
<q-btn
|
<q-btn
|
||||||
label="ยกเลิก"
|
label="ยกเลิก"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue