index.js 350 B

123456789101112
  1. import { BaseService, Service, Permission } from "./service";
  2. import { SET_SERVICE, SET_ROUTER, SET_COMPONENT } from "./set";
  3. import "./common";
  4. async function bootstrap(options = {}) {
  5. const { components } = options;
  6. SET_ROUTER();
  7. SET_SERVICE();
  8. SET_COMPONENT({ events: components });
  9. }
  10. export { Service, Permission, BaseService, bootstrap };