|
|
@@ -122,16 +122,17 @@ const getMeshScene = async (scene: QuoteScene) => {
|
|
|
};
|
|
|
|
|
|
const openSceneEdit = async (scene: QuoteScene, type: any) => {
|
|
|
- const token = await transformSWToken(scene, type);
|
|
|
- if (!token) return;
|
|
|
- const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
|
- let base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
|
- if(scene.isObj === 0){
|
|
|
- base = isTest ? testLaserUrl : LaserUrl;
|
|
|
- window.open(`${base}/index.html?m=${scene.num}&token=${token}`, "_blank");
|
|
|
- return
|
|
|
- }
|
|
|
- window.open(`${base}/epg.html?m=${scene.num}&token=${token}`, "_blank");
|
|
|
+ openSceneUrl(scene, OpenType.edit, type)
|
|
|
+ // const token = await transformSWToken(scene, type);
|
|
|
+ // if (!token) return;
|
|
|
+ // const isTest = window.location.host.includes("localhost") || window.location.host.includes("test");
|
|
|
+ // let base = isTest ? "https://test.4dkankan.com" : "https://4dkankan.com";
|
|
|
+ // if(scene.isObj === 0){
|
|
|
+ // base = isTest ? testLaserUrl : LaserUrl;
|
|
|
+ // window.open(`${base}/index.html?m=${scene.num}&token=${token}`, "_blank");
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // window.open(`${base}/epg.html?m=${scene.num}&token=${token}`, "_blank");
|
|
|
};
|
|
|
|
|
|
const openLaserSceneEdit = async (scene: QuoteScene, type: any) => {
|