refactor(frontend) : trim product edit page under 500 lines

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 17:30:41 +01:00
parent a83a4428c2
commit c1d14124ff

View File

@@ -298,20 +298,12 @@ const canSubmit = computed(() =>
const structurePreview = computed(() => formatProductStructurePreview(structure.value)) const structurePreview = computed(() => formatProductStructurePreview(structure.value))
const openPreview = (doc: any) => { const openPreview = (doc: any) => {
if (!doc || !canPreviewDocument(doc)) { if (!doc || !canPreviewDocument(doc)) return
return
}
previewDocument.value = doc previewDocument.value = doc
previewVisible.value = true previewVisible.value = true
} }
const closePreview = () => { previewVisible.value = false; previewDocument.value = null }
const closePreview = () => {
previewVisible.value = false
previewDocument.value = null
}
const loadProduct = async () => { const loadProduct = async () => {
const id = route.params.id const id = route.params.id