Skip to content

onThemeChange

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

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