feat: 商品编辑功能
This commit is contained in:
@@ -198,6 +198,9 @@ const handlePreviewImage = (imageUrl: string) => {
|
||||
const handlePreviewClose = () => {
|
||||
previewVisible.value = false;
|
||||
};
|
||||
watch(modelValue, (newValue) => {
|
||||
fileList.value = newValue.map((url) => ({ url }) as UploadUserFile);
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
fileList.value = modelValue.value.map((url) => ({ url }) as UploadUserFile);
|
||||
|
||||
Reference in New Issue
Block a user