feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline
This commit is contained in:
@@ -102,9 +102,19 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive } 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: '职引 - AI择业顾问 | 专业分析+岗位推荐', path: '/pages/career/career' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI择业顾问 | 专业分析+岗位推荐' }))
|
||||
// #endif
|
||||
|
||||
const grades = ['大一', '大二', '大三', '大四', '研一', '研二', '研三', '已毕业']
|
||||
|
||||
const step = ref('input')
|
||||
|
||||
Reference in New Issue
Block a user