feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline
This commit is contained in:
@@ -185,9 +185,19 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, 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: '职引 - AI模拟面试 | 校招求职一站式平台', path: '/pages/index/index' }))
|
||||
onShareTimeline(() => ({ title: '职引 - AI模拟面试 | 校招求职一站式平台' }))
|
||||
// #endif
|
||||
|
||||
const userInfo = ref(null)
|
||||
const greeting = ref('')
|
||||
const hotPositions = ref([])
|
||||
|
||||
Reference in New Issue
Block a user