feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline

This commit is contained in:
yuzhiran
2026-06-21 18:51:35 +08:00
parent 214571688c
commit d8fb8e3bba
13 changed files with 118 additions and 0 deletions
+8
View File
@@ -118,8 +118,16 @@
<script setup>
import { ref, computed, onMounted, onBeforeUnmount } from 'vue'
// #ifdef MP-WEIXIN
import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
// #endif
import { api } from '../../config'
// #ifdef MP-WEIXIN
onShareAppMessage(() => ({ title: '职引 - 登录注册 | AI模拟面试', path: '/pages/login/login' }))
onShareTimeline(() => ({ title: '职引 - 登录注册 | AI模拟面试' }))
// #endif
const agreed = ref(false)
const mainTab = ref('login')