app.js 422 B

1234567891011121314151617181920
  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. console.log("options ===>", options);
  14. },
  15. globalData: { ...defaultGlobalData },
  16. })
  17. );