恢复跳转参数
This commit is contained in:
parent
d260e09a00
commit
ac32423cef
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user