hookehuyr

feat(ai): 配置腾讯元宝AI小程序跳转

- 更新元宝小程序 AppID 为 wxd5201eb08d2fa15c
- 配置跳转路径为 pages/agentChat/index
- 添加 extraData 参数(showAuthDirectly 和 agentId)
- 移除未使用的 ref 导入,优化代码

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
20 </template> 20 </template>
21 21
22 <script setup> 22 <script setup>
23 -import { ref, shallowRef } from 'vue' 23 +import { shallowRef } from 'vue'
24 import IconFont from '@/components/IconFont.vue' 24 import IconFont from '@/components/IconFont.vue'
25 import { useGo } from '@/hooks/useGo' 25 import { useGo } from '@/hooks/useGo'
26 import Taro from '@tarojs/taro' 26 import Taro from '@tarojs/taro'
...@@ -87,11 +87,11 @@ const handleTabClick = (item) => { ...@@ -87,11 +87,11 @@ const handleTabClick = (item) => {
87 } else if (item.key === 'ai') { 87 } else if (item.key === 'ai') {
88 // 跳转到腾讯元宝AI小程序 88 // 跳转到腾讯元宝AI小程序
89 Taro.navigateToMiniProgram({ 89 Taro.navigateToMiniProgram({
90 - appId: 'wxXXXXXXXXXXXXXXXX', // TODO: 替换为实际的腾讯元宝小程序 AppID 90 + appId: 'wxd5201eb08d2fa15c', // 腾讯元宝小程序 AppID
91 - path: 'pages/index/index', // TODO: 元宝小程序的路径(根据实际情况填写) 91 + path: 'pages/agentChat/index', // 元宝小程序 AI 聊天页面路径
92 extraData: { 92 extraData: {
93 - // TODO: 如果需要传递参数,在这里配置 93 + showAuthDirectly: 1,
94 - // from: 'manulife-weapp' 94 + agentId: 'sOySYp2PV9qa'
95 }, 95 },
96 envVersion: 'release', // 打开正式版 96 envVersion: 'release', // 打开正式版
97 success: (res) => { 97 success: (res) => {
......