diff --git a/app/pages/product/[id]/edit.vue b/app/pages/product/[id]/edit.vue index 8b3a342..6614df7 100644 --- a/app/pages/product/[id]/edit.vue +++ b/app/pages/product/[id]/edit.vue @@ -298,20 +298,12 @@ const canSubmit = computed(() => const structurePreview = computed(() => formatProductStructurePreview(structure.value)) - const openPreview = (doc: any) => { - if (!doc || !canPreviewDocument(doc)) { - return - } + if (!doc || !canPreviewDocument(doc)) return previewDocument.value = doc previewVisible.value = true } - -const closePreview = () => { - previewVisible.value = false - previewDocument.value = null -} - +const closePreview = () => { previewVisible.value = false; previewDocument.value = null } const loadProduct = async () => { const id = route.params.id