feat: 支持多页面分享与统一默认头像
Made-with: Cursor
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { onShareAppMessage } from '@dcloudio/uni-app'
|
||||
import { useLogin } from '@/hooks/useLogin'
|
||||
import { useProfileStore } from '@/stores/profile'
|
||||
import { storage } from '@/utils/storage'
|
||||
@@ -410,6 +411,13 @@ async function initPage() {
|
||||
onMounted(() => {
|
||||
initPage()
|
||||
})
|
||||
|
||||
onShareAppMessage(() => {
|
||||
return {
|
||||
title: '戒烟助手 - AI 戒烟教练陪你',
|
||||
path: 'pages/index/index'
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user