zhengyiming
2025-02-21 a3be4bd8a96df6b27e4f0d3883d661d9cb64d1fc
apps/taro/src/app.ts
@@ -10,6 +10,9 @@
import Taro from '@tarojs/taro';
import { VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query';
import { myClient } from '@/constants/query';
import { VueLifeRechargePlugin } from '@life-payment/components';
import { blLifeRecharge } from '@/utils/blLifeRecharge';
import { isWeChat } from '@/utils/env';
window.uni = Taro;
@@ -62,7 +65,9 @@
  // 对应 onShow
  onShow(options) {
    updateVersions();
    if (isWeChat) {
      updateVersions();
    }
  },
  // 对应 onHide
@@ -82,4 +87,8 @@
App.use(VueQueryPlugin, vueQueryPluginOptions);
App.use(VueLifeRechargePlugin, {
  blLifeRecharge,
});
export default App;