Skip to content

onUnhandledRejection

ts
import { createApp, onUnhandledRejection } from '@52css/mp-vue3'

createApp({
  setup() {
    onUnhandledRejection((result: WechatMiniprogram.OnUnhandledRejectionListenerResult) => {
      console.log("🚀 ~ onUnhandledRejection ~ result:", result)
    })
  }
});