feat(miniprogram): enable sharing on all pages

This commit is contained in:
stu2not
2026-10-13 10:03:59 +08:00
parent ffdd8eaff1
commit b6906bc8b6
24 changed files with 89 additions and 11 deletions
@@ -4,6 +4,7 @@ import { useEffect, useState } from 'react'
import Taro, { useRouter } from '@tarojs/taro'
import { getToken } from '@/services/auth'
import { resolveWechatMpNotificationLink } from '@/services/notification'
import { usePageShare } from '@/utils/page-share'
import './index.scss'
function buildQuery(params: Record<string, string | number | null | undefined>): string {
@@ -18,6 +19,7 @@ function buildCurrentPageUrl(token: string): string {
}
export default function NotificationEntry() {
usePageShare()
const router = useRouter()
const token = String(router.params.token || '').trim()
const [message, setMessage] = useState('正在打开留言...')