From 6e47a359c0c8e26b7f881b81ef8cd3519e96859b Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期六, 04 四月 2026 22:08:34 +0800
Subject: [PATCH] 预览 加载不会停止 修改

---
 src/views/component/printList/preview.vue |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/views/component/printList/preview.vue b/src/views/component/printList/preview.vue
index 3516464..0229119 100644
--- a/src/views/component/printList/preview.vue
+++ b/src/views/component/printList/preview.vue
@@ -125,8 +125,6 @@
     },
     async show(hiprintTemplate, printData, width = '210') {
       await this.initHiPrintAsync()
-      console.log(printData)
-      console.log(hiprintTemplate)
       this.visible = true
       this.spinning = true
       this.width = hiprintTemplate.editingPanel ? hiprintTemplate.editingPanel.width : width;
@@ -141,8 +139,8 @@
       // hiprintTemplateInstance.getJson(tempContainer)
       setTimeout(() => {
         // eslint-disable-next-line no-undef
-        hiprintTemplateInstance.getHtml(printData)
-
+        $("#preview_content_design").html(hiprintTemplateInstance.getHtml(printData))
+        this.spinning = false
       }, 1000)
     },
     print() {

--
Gitblit v1.9.1