feat: 支持多页面分享与统一默认头像
Made-with: Cursor
This commit is contained in:
@@ -181,6 +181,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, watch } from 'vue'
|
||||
import { onShareAppMessage } from '@dcloudio/uni-app'
|
||||
import { useLogin } from '@/hooks/useLogin'
|
||||
import * as api from '@/api'
|
||||
|
||||
@@ -496,6 +497,13 @@ onMounted(() => {
|
||||
statusBarHeight.value = Math.max((sys.statusBarHeight || 0) - 20, 0)
|
||||
fetchStats()
|
||||
})
|
||||
|
||||
onShareAppMessage(() => {
|
||||
return {
|
||||
title: '戒烟助手 - 我的戒烟数据分析',
|
||||
path: 'pages/index/index'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user