feat(miniprogram): enable sharing on all pages
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationStyle: 'custom'
|
||||
navigationStyle: 'custom',
|
||||
enableShareAppMessage: true,
|
||||
})
|
||||
|
||||
@@ -27,6 +27,7 @@ import {
|
||||
} from '@/services/child'
|
||||
import { useSystemBanner } from '@/components/system-banner/use-system-banner'
|
||||
import { trafficPageUrl } from '@/services/traffic-binding'
|
||||
import { usePageShare } from '@/utils/page-share'
|
||||
|
||||
import './index.scss'
|
||||
|
||||
@@ -161,6 +162,7 @@ function parseBindingPayload(rawValue: string): { deviceId: string; serialNumber
|
||||
}
|
||||
|
||||
export default function Bind() {
|
||||
usePageShare()
|
||||
const router = useRouter()
|
||||
const isAssignMode = String(router.params?.mode || '').trim() === 'assign'
|
||||
const isCardMode = String(router.params?.mode || '').trim() === 'card'
|
||||
|
||||
Reference in New Issue
Block a user