feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline
This commit is contained in:
@@ -134,9 +134,19 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
// #ifdef MP-WEIXIN
|
||||
import { onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
// #endif
|
||||
import { api } from '../../config'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
onShareAppMessage(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历', path: '/pages/progress/progress' }))
|
||||
onShareTimeline(() => ({ title: '职引 - 进步轨迹 | 能力雷达+打卡日历' }))
|
||||
// #endif
|
||||
|
||||
const stats = ref({ completedInterviews: 0, avgScore: 0, streak: 0 })
|
||||
const progress = ref({ dimensions: {}, interviews: [], recentScores: [] })
|
||||
const skillsGap = ref(null)
|
||||
|
||||
Reference in New Issue
Block a user