From ac32423cef3d723f4204a65f8833ac844e07ef41 Mon Sep 17 00:00:00 2001 From: davy Date: Wed, 23 Jul 2025 17:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=B7=B3=E8=BD=AC=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/template/beer/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/template/beer/index.vue b/src/views/template/beer/index.vue index 5c8f70a..3791edc 100644 --- a/src/views/template/beer/index.vue +++ b/src/views/template/beer/index.vue @@ -125,6 +125,7 @@ try { // 确保传递正确的模板ID,支持id和uuid字段 const templateId = item.uuid || item.id; + const posterId = item.id; console.log('[editTemplate] 模板数据:', item, '使用templateId:', templateId); if (!templateId) { @@ -135,7 +136,8 @@ const res = await getEditorToken({ templateId: templateId, purpose: 'edit' }); console.log('[editTemplate] getEditorToken返回:', res); if (res && res.fastPosterUrl && res.editorToken) { - const url = `${res.fastPosterUrl}?editorToken=${res.editorToken}&templateId=${templateId}`; + // 增加posterId参数 + const url = `${res.fastPosterUrl}?editorToken=${res.editorToken}&templateId=${templateId}&posterId=${posterId}`; console.log('[editTemplate] 跳转URL:', url); window.location.href = url; } else {