feat: 商品编辑功能

This commit is contained in:
duan
2025-02-24 18:03:17 +08:00
parent 907b763fca
commit 6da80d9b23
4 changed files with 103 additions and 70 deletions

View File

@@ -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);