Ver código fonte

feat: 修复2

zhangyuhan 5 meses atrás
pai
commit
c3781ec969

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

@@ -229,5 +229,10 @@ export const LINKS = {
     app: '/jyapp/frontPage/sunshine/free/index',
     h5: '/jyapp/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)
 function doBackHome () {
   trickClick(`退出页面-首页`)
-  location.href = '/'
+  return openLinkOfOther(LINKS.首页, {
+    query: {
+      from: that.$route.query.from,
+      activity: that.$route.query.from || that.$route.query.activity
+    }
+  })
 }
 
 function doBack() {