bianjiang 10 月之前
父節點
當前提交
9a72e8cc70

+ 2 - 2
src/modules/editor/components/Viewport/Header/ShareBox.tsx

@@ -15,12 +15,12 @@ export const ShareBox = defineComponent({
     const isWk = store.isWk;
     const page = controls.pageCtrl;
 
-    let shareLink = `${location.origin}${getPathname()}/share.html?id=${
+    let shareLink = `${location.origin}${getPathname()}share.html?id=${
       page.designData._id
     }&isSys=${isSys}`;
 
     if (isWk) {
-      shareLink = `${location.origin}${getPathname()}/share.html?id=${
+      shareLink = `${location.origin}${getPathname()}share.html?id=${
         page.designData._id
       }&isWk=true`;
     }

+ 1 - 1
src/modules/editor/components/Viewport/Slider/SliderLeft/Templates/PreviewTplModal.tsx

@@ -10,7 +10,7 @@ export default defineUI({
   },
   emits: ["click"],
   setup(props, { emit }) {
-    const shareLink = `${location.origin}${getPathname()}/share.html?id=${props.data._id}&isSys=true`;
+    const shareLink = `${location.origin}${getPathname()}share.html?id=${props.data._id}&isSys=true`;
 
     return () => {
       const { data } = props;

+ 1 - 1
src/modules/editor/module/index.ts

@@ -88,7 +88,7 @@ export class EditorModule extends ModuleRoot {
   jumpIndexHtml(route = "#/") {
     const _params = new URLSearchParams(decodeURIComponent(location.search));
     const host = _params.get("host");
-    let link = `${location.origin}${getPathname()}/index.html?host=${host}${route}`;
+    let link = `${location.origin}${getPathname()}index.html?host=${host}${route}`;
     // if (location.host == "www.infish.cn") {
     //   link = `${location.origin}${location.pathname}/projects/queenshowv1/index.html?host=${host}${route}`;
     // }

+ 1 - 1
src/modules/resource/actions/material.ts

@@ -67,7 +67,7 @@ export const materialActions = ResourceModule.action({
     //   return;
     // }
 
-    const url = `${location.origin}${getPathname()}/index.html?host=${host}#/create/${record._id}`;
+    const url = `${location.origin}${getPathname()}index.html?host=${host}#/create/${record._id}`;
     location.href = url;
   },
 });

+ 2 - 2
src/modules/resource/actions/promotion.tsx

@@ -92,7 +92,7 @@ export const promotionAction = ResourceModule.action({
     //   return;
     // }
 
-    const url = `${location.origin}${getPathname()}/editor.html#/?id=${res.result}`;
+    const url = `${location.origin}${getPathname()}editor.html#/?id=${res.result}`;
     location.href = url;
   },
 
@@ -109,7 +109,7 @@ export const promotionAction = ResourceModule.action({
     //   return;
     // }
 
-    const url = `${location.origin}${getPathname()}/editor.html#/?id=${res.result}&mode=editComp`;
+    const url = `${location.origin}${getPathname()}editor.html#/?id=${res.result}&mode=editComp`;
     location.href = url;
   },
 

+ 1 - 1
src/modules/resource/components/Collection/CollectionShare.tsx

@@ -17,7 +17,7 @@ export default defineComponent({
     controller: any<CollectionController>().isRequired,
   },
   setup(props, { slots }) {
-    let shareLink = `${location.origin}${getPathname()}/share.html?id=${
+    let shareLink = `${location.origin}${getPathname()}share.html?id=${
       props.record._id
     }&isWk=true`;
 

+ 1 - 1
src/modules/resource/components/Collection/innerListController.tsx

@@ -54,7 +54,7 @@ export function InnerListController(
   ctrl.onEdit = async (id: string) => {
     const _params = new URLSearchParams(decodeURIComponent(location.search));
     const host = _params.get("host");
-    const url = `${location.origin}${getPathname()}/editor.html?host=${host}#/?id=${id}&isWk=ture`;
+    const url = `${location.origin}${getPathname()}editor.html?host=${host}#/?id=${id}&isWk=ture`;
     location.href = url;
   };
 

+ 1 - 1
src/modules/resource/components/PromotionItem.tsx

@@ -22,7 +22,7 @@ export default defineComponent({
       //   location.href = url;
       //   return;
       // }
-      const url = `${location.origin}${getPathname()}/editor.html#/?id=${props.record._id}`;
+      const url = `${location.origin}${getPathname()}editor.html#/?id=${props.record._id}`;
       location.href = url;
     };
 

+ 1 - 1
src/modules/resource/controllers/MaterialController.ts

@@ -23,7 +23,7 @@ export class MaterialController {
     ctrl.loadPage(1);
     const record: any = await this.onShowDialog(ctrl, type);
     if (record && record._id) {
-      const url = `${location.origin}${getPathname()}/index.html#/create/${record._id}`;
+      const url = `${location.origin}${getPathname()}index.html#/create/${record._id}`;
       location.href = url;
     }
   }

+ 2 - 2
src/modules/resource/controllers/PromotionController.ts

@@ -19,7 +19,7 @@ export class PromotionController {
     //   return;
     // }
 
-    const url = `${location.origin}${getPathname()}/editor.html?host=${host}#/?id=${item._id}`;
+    const url = `${location.origin}${getPathname()}editor.html?host=${host}#/?id=${item._id}`;
     location.href = url;
   }
   onPreview(item: any) {
@@ -28,7 +28,7 @@ export class PromotionController {
     //   location.href = url;
     //   return;
     // }
-    const url = `${location.origin}${getPathname()}/share.html#/?id=${item._id}`;
+    const url = `${location.origin}${getPathname()}share.html#/?id=${item._id}`;
     location.href = url;
   }
 

+ 1 - 1
src/pages/website/Promotion2/components/ShareModal.tsx

@@ -18,7 +18,7 @@ export default defineComponent({
     const auth = useAuth();
     const userInfo: any = auth.store.userInfo;
     const isSys = userInfo.roles?.includes("system") ? true : false;
-    let shareLink = `${location.origin}${getPathname()}/share.html?id=${
+    let shareLink = `${location.origin}${getPathname()}share.html?id=${
       props.record._id
     }&isSys=${isSys}`;
 

+ 2 - 2
src/pages/website/Promotion2/controller.tsx

@@ -47,7 +47,7 @@ export function createPromotinController(
   }
   let url = "";
   ctrl.onMenuClick = async (name, record, isSys) => {
-    const shareLink = `${location.origin}${getPathname()}/share.html?id=${
+    const shareLink = `${location.origin}${getPathname()}share.html?id=${
       record._id
     }&isSys=${isSys}`;
 
@@ -57,7 +57,7 @@ export function createPromotinController(
         break;
       case "stat":
         window.open(
-          `${location.origin}${getPathname()}/stat/#/count?id=${record._id}`
+          `${location.origin}${getPathname()}stat/#/count?id=${record._id}`
         );
         break;
       case "delete":