浏览代码

feat: 修复2

zhangyuhan 5 月之前
父节点
当前提交
c3781ec969
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 5 0
      apps/mobile/src/data/links.js
  2. 6 1
      apps/mobile/src/views/ai-search/index.vue

+ 5 - 0
apps/mobile/src/data/links.js

@@ -229,5 +229,10 @@ export const LINKS = {
     app: '/jyapp/frontPage/sunshine/free/index',
     app: '/jyapp/frontPage/sunshine/free/index',
     h5: '/jyapp/frontPage/sunshine/free/index',
     h5: '/jyapp/frontPage/sunshine/free/index',
     wx: '/weixin/frontPage/sunshine/free/index'
     wx: '/weixin/frontPage/sunshine/free/index'
+  },
+  首页: {
+    app: '/jyapp/jylab/mainSearch',
+    h5: '/jyapp/jylab/mainSearch',
+    wx: '/jylab/mainSearch?msg=0'
   }
   }
 }
 }

+ 6 - 1
apps/mobile/src/views/ai-search/index.vue

@@ -37,7 +37,12 @@ const rightAction = ref({
 const canShowDoBackHome = ref(true)
 const canShowDoBackHome = ref(true)
 function doBackHome () {
 function doBackHome () {
   trickClick(`退出页面-首页`)
   trickClick(`退出页面-首页`)
-  location.href = '/'
+  return openLinkOfOther(LINKS.首页, {
+    query: {
+      from: that.$route.query.from,
+      activity: that.$route.query.from || that.$route.query.activity
+    }
+  })
 }
 }
 
 
 function doBack() {
 function doBack() {