"use strict";
const common_vendor = require("../../common/vendor.js");
const useOnLoad = (callback) => {
  const app = getApp();
  common_vendor.onLoad((options) => {
    if (app.globalData.logSuccess) {
      callback(options);
    } else {
      app.loginReadyCallBack = () => {
        callback(options);
      };
    }
  });
};
exports.useOnLoad = useOnLoad;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/hook/use-on-load/index.js.map
