|
@@ -101,9 +101,10 @@ const openSceneEdit = async (scene: QuoteScene, type: any) => {
|
|
|
const token = await transformSWToken(scene, type);
|
|
const token = await transformSWToken(scene, type);
|
|
|
if (!token) return;
|
|
if (!token) return;
|
|
|
let newUrl = SceneTypePaths[scene.type][1];
|
|
let newUrl = SceneTypePaths[scene.type][1];
|
|
|
|
|
+ let returnurl = window.location.origin + window.location.pathname + '/#/login';
|
|
|
// const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
// const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
|
// const base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
// const base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
|
- window.open(`${newUrl}?m=${scene.num}&token=${token}`, "_blank");
|
|
|
|
|
|
|
+ window.open(`${newUrl}?m=${scene.num}&token=${token}&returnurl=${encodeURIComponent(returnurl)}`, "_blank");
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 权限弹窗:传递 num 和 isObj(由行数据或类型推断)
|
|
// 权限弹窗:传递 num 和 isObj(由行数据或类型推断)
|