main.ts 553 B

1234567891011121314
  1. import { createApp } from 'vue'
  2. import { createPinia } from 'pinia'
  3. import ElementPlus from 'element-plus'
  4. import zhCn from 'element-plus/es/locale/lang/zh-cn'
  5. import 'element-plus/dist/index.css'
  6. import { router } from './router'
  7. import './style/operations.css'
  8. import './style/prototype.css'
  9. import App from './App.vue'
  10. async function start() {
  11. createApp(App).use(createPinia()).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')
  12. }
  13. start().catch(error => { document.getElementById('app')!.textContent = `启动失败:${error.message}` })