From a9ce1a4f774684f7409fb00562bee322a7a7632e Mon Sep 17 00:00:00 2001 From: shaoleiliu-netizen123 <480188199@qq.com> Date: Mon, 22 Jun 2026 08:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CadModelViewer.vue | 454 ++++++++++++++---------------- src/components/PlmModelDrawer.vue | 11 +- 2 files changed, 224 insertions(+), 241 deletions(-) diff --git a/src/components/CadModelViewer.vue b/src/components/CadModelViewer.vue index 7282e4c..652c579 100644 --- a/src/components/CadModelViewer.vue +++ b/src/components/CadModelViewer.vue @@ -1,129 +1,228 @@ - + \ No newline at end of file diff --git a/src/components/PlmModelDrawer.vue b/src/components/PlmModelDrawer.vue index 83b1bfe..851c96e 100644 --- a/src/components/PlmModelDrawer.vue +++ b/src/components/PlmModelDrawer.vue @@ -14,7 +14,7 @@ 首次查看可能需要 30 秒~数分钟 - + { const maxAttempts = 90 - for (let i = 0; i < maxAttempts; i++) { + for (let i = 0; i < maxAttempts; i++) { const res = await plmModelApi.getPreview(query) + if (res.status === 'ready' || res.status === 'failed' || res.status === 'not_found') { return res } @@ -86,7 +87,7 @@ async function open(ctx: PlmModelOpenContext) { resultMeta.value = null previewUrl.value = '' error.value = '' - converting.value = false + converting.value = true loading.value = true visible.value = true @@ -98,8 +99,10 @@ async function open(ctx: PlmModelOpenContext) { processPlanId: ctx.processPlanId, dispatchId: ctx.dispatchId, }) + resultMeta.value = res - + + if (res.status === 'ready' && res.previewUrl) { previewUrl.value = res.previewUrl } else {