智莺站长PC端官网代码, vite-vue
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.js 393 B

123456789101112131415161718
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import route from '../src/route/index'
  4. import store from './store' // 引入 vuex
  5. import ElementPlus from 'element-plus';
  6. import '/@modules/element-plus/lib/theme-chalk/index.css';
  7. const app = createApp(App)
  8. app.use(ElementPlus, { size: 'small', zIndex: 3000 });
  9. app.use(store) // 使用 vuex
  10. app.use(route)
  11. app.mount('#app')