feat(miniprogram): enable sharing on all pages
This commit is contained in:
@@ -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('正在打开留言...')
|
||||
|
||||
Reference in New Issue
Block a user