main.js 619 B

1234567891011121314151617181920212223242526
  1. import '@/utils/helpers/vconsole';
  2. // import { setupErrorHandle } from '@/utils/helpers/errorHandle';
  3. import { createApp } from 'vue';
  4. import App from './App.vue';
  5. import { setupRouter } from './router';
  6. import { setupPageStackRouter } from './router/pageStack';
  7. import { setupStore } from './store';
  8. import { setupVant } from './components/registerVant';
  9. // global
  10. import './styles/index.less';
  11. async function bootstrap() {
  12. // app
  13. const app = createApp(App);
  14. // setupErrorHandle(app);
  15. setupRouter(app);
  16. setupPageStackRouter(app);
  17. setupStore(app);
  18. setupVant(app);
  19. app.mount('#app');
  20. }
  21. bootstrap();