main.ts 423 B

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