Merge branch 'master' of https://gitee.com/youlaiorg/vue3-element-admin
This commit is contained in:
@@ -213,5 +213,12 @@ const handlePreviewClose = () => {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fileList.value = modelValue.value.map((url) => ({ url }) as UploadUserFile);
|
fileList.value = modelValue.value.map((url) => ({ url }) as UploadUserFile);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => modelValue.value,
|
||||||
|
(newVal) => {
|
||||||
|
fileList.value = newVal.map((url) => ({ url }) as UploadUserFile);
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user