前端引入elementplus

This commit is contained in:
2024-08-29 13:00:04 +08:00
parent 90f6ed0bc3
commit 777edc962b
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@@ -28,3 +28,5 @@ coverage
*.sw?
*.tsbuildinfo
tonecn/pnpm-lock.yaml
tonecn/pnpm-lock.yaml

View File

@@ -12,8 +12,6 @@
},
"dependencies": {
"axios": "^1.6.8",
"element-plus": "^2.7.3",
"pinia": "^2.1.7",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
@@ -22,6 +20,7 @@
"@types/node": "^20.12.5",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"element-plus": "^2.7.3",
"npm-run-all2": "^6.1.2",
"typescript": "~5.4.0",
"unplugin-auto-import": "^0.17.6",

View File

@@ -1,14 +1,15 @@
import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')