12345678910111213141516171819202122232425262728293031323334 |
- import { createApp } from 'vue'
- // 1. 引入你需要的组件
- import vant from 'vant'
- import VueHashCalendar from 'vue3-hash-calendar';
- // 2. 引入组件样式
- import 'vant/lib/index.css'
- import 'vue3-hash-calendar/es/index.css';
- import VConsole from 'vconsole';
- import { createPinia } from 'pinia'
- import {setupRouter} from './router'
- import { setupStore } from './store'
- const vConsole = new VConsole();
- // or init with options
- // const vConsole = new VConsole({ theme: 'dark' });
- vConsole.setSwitchPosition(0, 900);
- import './style.css'
- import App from './App.vue'
- const pinia = createPinia()
- const app = createApp(App)
- setupRouter(app);
- setupStore(app);
- app.use(pinia)
- app.use(vant)
- app.use(VueHashCalendar)
- app.mount('#app')
|