|
@@ -28,12 +28,12 @@ export const promotionAction = ResourceModule.action({
|
|
|
});
|
|
|
if (!title) return;
|
|
|
const res = await this.https.createPromotion({ title });
|
|
|
- console.log(location.host, location.host == "www.infish.cn");
|
|
|
- if (location.host == "www.infish.cn") {
|
|
|
- const url = `${location.origin}/projects/queenshowv1/editor.html#/?id=${res.result}`;
|
|
|
- location.href = url;
|
|
|
- return;
|
|
|
- }
|
|
|
+ //console.log(location.host, location.host == "www.infish.cn");
|
|
|
+ // if (location.host == "www.infish.cn") {
|
|
|
+ // const url = `${location.origin}/projects/queenshowv1/editor.html#/?id=${res.result}`;
|
|
|
+ // location.href = url;
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
const url = `${location.origin}/editor.html#/?id=${res.result}`;
|
|
|
location.href = url;
|
|
@@ -45,12 +45,12 @@ export const promotionAction = ResourceModule.action({
|
|
|
});
|
|
|
if (!title) return;
|
|
|
const res = await this.https.createComp({ title });
|
|
|
- console.log(location.host, location.host == "www.infish.cn");
|
|
|
- if (location.host == "www.infish.cn") {
|
|
|
- const url = `${location.origin}/projects/queenshowv1/editor.html#/?id=${res.result}&mode=editComp`;
|
|
|
- location.href = url;
|
|
|
- return;
|
|
|
- }
|
|
|
+ // console.log(location.host, location.host == "www.infish.cn");
|
|
|
+ // if (location.host == "www.infish.cn") {
|
|
|
+ // const url = `${location.origin}/projects/queenshowv1/editor.html#/?id=${res.result}&mode=editComp`;
|
|
|
+ // location.href = url;
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
const url = `${location.origin}/editor.html#/?id=${res.result}&mode=editComp`;
|
|
|
location.href = url;
|