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 {