Skip to content

onShareTimeline

ts
import { definePage, onShareTimeline } from '@52css/mp-vue3'

definePage({
  queries: {},
  setup() {
    onShareTimeline(() => {
      console.log("🚀 ~ onShareTimeline ~ onShareTimeline:", onShareTimeline)
      return {
        title: '转发标题',
        imageUrl: '', // 图片 URL
        query: 'a=1&b=2'
      }
    })
  }
});