Browse Source

Merge branch '我要报备跳转链接修改' into uat

yanym 3 weeks ago
parent
commit
59f137f3e0
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/utils/index.ts
  2. 1 1
      src/views/AIDesign/design.vue

+ 2 - 2
src/utils/index.ts

@@ -153,7 +153,7 @@ export const toLBHome = () => {
   }
 }
 
-export const toXiaoChengxu = (appid) => {
+export const toXiaoChengxu = (appid,pageUrl='') => {
   let url = window.location.href.split("#")[0];
   const formData = new FormData();
   formData.append('url', url);
@@ -174,7 +174,7 @@ export const toXiaoChengxu = (appid) => {
             "launchMiniprogram",
             {
               appid: appid, // 需跳转的小程序appid
-              path: "" // 所需跳转的小程序内页面路径及参数。非必填
+              path: pageUrl // 所需跳转的小程序内页面路径及参数。非必填
             },
             function (res) {
               if (res.err_msg == "launchMiniprogram:ok") {

+ 1 - 1
src/views/AIDesign/design.vue

@@ -1250,7 +1250,7 @@ export default class extends Vue {
   private toProjectLink() {
     this.showProjectPopover = false;
     // window.location.href = this.addProjectLink;
-      toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID9}`);
+      toXiaoChengxu(`${process.env.VUE_APP_BASE_DISID9}`,'packageC/projectFiling/index');
   }
 
   //获取风格选项图片列表