feat: enable WeChat share/forward on all pages via onShareAppMessage + onShareTimeline
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user