fix: The execution details of the form file upload cannot be displayed back (#3978)

This commit is contained in:
shaohuzhang1 2025-09-02 11:18:20 +08:00 committed by GitHub
parent f6e9bf6483
commit c4c0ba0b38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ const selected = (activeValue: string | number) => {
elFormItem.validate('change')
}
}
const reset = (activeValue: string) => {
const reset = (activeValue: string | number) => {
const _result = props.modelValue ? [...props.modelValue, activeValue] : [activeValue]
return _result.filter((r) => option_value_list.value.includes(r))
}

View File

@ -72,7 +72,7 @@ const deleteFile = (file: any) => {
const model_value = computed({
get: () => {
if (!model_value.value) {
if (!props.modelValue) {
emit('update:modelValue', [])
}
return props.modelValue