main.ts 474 B

1234567891011121314151617181920212223
  1. import './themes/index.css';
  2. import { Lazyload } from 'vant';
  3. import 'vant/es/toast/style'
  4. import 'vant/es/notify/style'
  5. import 'vant/es/dialog/style'
  6. import './polyfill'
  7. import App from './App.vue';
  8. import launch, { debugLaunch, platformLaunch } from '@/core/launch';
  9. launch(App, [
  10. debugLaunch('debug', true),
  11. platformLaunch()
  12. ]).then(
  13. (app) => {
  14. app.use(Lazyload, { lazyComponent: true });
  15. app.mount('#app');
  16. },
  17. (error) => {
  18. alert(error);
  19. },
  20. );