perf: 迁移项目至Vite构建工具,更新依赖和配置
This commit is contained in:
23
src/main.ts
23
src/main.ts
@@ -1,20 +1,23 @@
|
||||
/*
|
||||
* @Description: {{ByRuin}}
|
||||
* @Version: 2.0
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-01-25 16:22:24
|
||||
* @LastEditors: 刘引 liu.yin.work@foxmail.com
|
||||
* @LastEditTime: 2023-08-01 15:54:28
|
||||
*/
|
||||
import { createApp } from 'vue'
|
||||
import router from './router/index' //引入vue-router
|
||||
import App from './App.vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import Foot from '@/components/Foot.vue'
|
||||
import Head from '@/components/Head.vue'
|
||||
import ElementPlus from 'element-plus'
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||
import 'element-plus/dist/index.css'
|
||||
|
||||
import TDesign from 'tdesign-vue-next'
|
||||
import 'tdesign-vue-next/es/style/index.css'
|
||||
import 'normalize.css/normalize.css'
|
||||
// 挂载到app上
|
||||
createApp(App)
|
||||
.use(router)
|
||||
.use(createPinia())
|
||||
.use(ElementPlus, {
|
||||
locale: zhCn
|
||||
})
|
||||
.component('Foot', Foot)
|
||||
.component('Head', Head)
|
||||
.use(TDesign)
|
||||
|
||||
.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user