12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import 'core-js/stable';
- import 'regenerator-runtime/runtime';
- import { createApp } from 'vue';
- import VueTour from 'v3-tour';
- import App from './App.vue';
- import { setupRouter } from './router';
- import { setupStore } from '@/store';
- import { setupI18n } from '@/locales';
- import { setupAntd, setupAssets, setupGlobalMethods, setupCustomComponents } from '@/plugins';
- import "./styles/variables.less"
- if (process.env.NODE_ENV === 'production') {
- const { mockXHR } = require('./mock');
- mockXHR();
- }
- const app = createApp(App);
- function setupPlugins() {
-
- setupAntd(app);
-
- setupAssets();
-
- setupCustomComponents(app);
-
- setupGlobalMethods(app);
- }
- async function setupApp() {
-
- setupStore(app);
-
-
- await setupI18n(app);
-
- await setupRouter(app);
- app.use(VueTour);
- app.mount('#app');
- }
- setupPlugins();
- setupApp();
|