app.js 381 B

12345678910111213141516171819
  1. import Store from "./antbuilder/core/store";
  2. import {
  3. onDefaultAppLaunch,
  4. defaultGlobalData,
  5. } from "./antbuilder/core/utils/appLifecycle";
  6. if (!my.canIUse("plugin.dynamic")) {
  7. my.ap && my.ap.updateAlipayClient && my.ap.updateAlipayClient();
  8. }
  9. App(
  10. Store({
  11. onLaunch(options) {
  12. onDefaultAppLaunch.call(this, options);
  13. },
  14. globalData: { ...defaultGlobalData },
  15. })
  16. );