Merge branch 'development'
This commit is contained in:
commit
35195f78bf
1 changed files with 8 additions and 2 deletions
|
|
@ -67,6 +67,10 @@ function checkFileExist(name: string, except?: string) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkFileName2Long(name: string, except?: string) {
|
||||||
|
return Boolean(name.length > 85)
|
||||||
|
}
|
||||||
|
|
||||||
async function submitFileForm(
|
async function submitFileForm(
|
||||||
value: {
|
value: {
|
||||||
mode: 'create' | 'edit'
|
mode: 'create' | 'edit'
|
||||||
|
|
@ -130,8 +134,10 @@ async function submitFileForm(
|
||||||
v-model:category="fileFormData.category"
|
v-model:category="fileFormData.category"
|
||||||
@reset="() => (fileFormError = {})"
|
@reset="() => (fileFormError = {})"
|
||||||
@filechange="
|
@filechange="
|
||||||
(name: string) =>
|
(name: string) => {
|
||||||
(fileFormError.fileExist = checkFileExist(name, fileNameLabel))
|
;(fileFormError.fileExist = checkFileExist(name, fileNameLabel)),
|
||||||
|
(fileFormError.fileName2Long = checkFileName2Long(name, fileNameLabel))
|
||||||
|
}
|
||||||
"
|
"
|
||||||
@submit="submitFileForm"
|
@submit="submitFileForm"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue