fix(selectFile): 修复未初始化时fileList为undefined的问题
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
const model = defineModel({ type: Array })
|
const model = defineModel({ type: Array })
|
||||||
|
|
||||||
const fileList = ref(model.value)
|
const fileList = ref(model.value || [])
|
||||||
|
|
||||||
const emits = defineEmits(['on-success', 'on-error'])
|
const emits = defineEmits(['on-success', 'on-error'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user