main.ts 585 B

12345678910111213141516171819202122232425262728293031
  1. import { createApp } from 'vue';
  2. import App from './App';
  3. import router from './router/index';
  4. import dayjs from 'dayjs';
  5. import { setupNaive } from './plugins';
  6. import { setupStore } from './store';
  7. import 'dayjs/locale/zh-cn';
  8. import './styles/index.less';
  9. async function setupApp() {
  10. // app loading
  11. // const appLoading = createApp(AppLoading);
  12. // appLoading.mount('#appLoading');
  13. const app = createApp(App);
  14. setupNaive(app);
  15. // store plugin: pinia
  16. setupStore(app);
  17. dayjs.locale('zh-ch');
  18. app.use(router);
  19. // mount app
  20. app.mount('#app');
  21. }
  22. setupApp();