diff --git a/src/views/SellerDashboard/BrandProfile/image-clip-dialog.vue b/src/views/SellerDashboard/BrandProfile/image-clip-dialog.vue index 8168b5e7..7eecbbfc 100644 --- a/src/views/SellerDashboard/BrandProfile/image-clip-dialog.vue +++ b/src/views/SellerDashboard/BrandProfile/image-clip-dialog.vue @@ -132,7 +132,11 @@ if (!props.isProduct) { if (!url || !callback) return } + coverOrigin.value = [] + data.url = null + currentOrigin.value = 'sketch' + data.url = url data.callback = callback data.ratio = options.ratio || [1, 1] @@ -143,7 +147,7 @@ if (options.hasOwnProperty("isPreview")) data.isPreview = options.isPreview data.isProduct = options.isProduct } - if (origin?.length) { + if (origin?.length && !data.url) { coverOrigin.value = origin data.url = origin[0].url }