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 @@
</template>
<script setup>
import { ref, shallowRef } from 'vue'
import { shallowRef } from 'vue'
import IconFont from '@/components/IconFont.vue'
import { useGo } from '@/hooks/useGo'
import Taro from '@tarojs/taro'
......@@ -87,11 +87,11 @@ const handleTabClick = (item) => {
} else if (item.key === 'ai') {
// 跳转到腾讯元宝AI小程序
Taro.navigateToMiniProgram({
appId: 'wxXXXXXXXXXXXXXXXX', // TODO: 替换为实际的腾讯元宝小程序 AppID
path: 'pages/index/index', // TODO: 元宝小程序的路径(根据实际情况填写)
appId: 'wxd5201eb08d2fa15c', // 腾讯元宝小程序 AppID
path: 'pages/agentChat/index', // 元宝小程序 AI 聊天页面路径
extraData: {
// TODO: 如果需要传递参数,在这里配置
// from: 'manulife-weapp'
showAuthDirectly: 1,
agentId: 'sOySYp2PV9qa'
},
envVersion: 'release', // 打开正式版
success: (res) => {
......