From 777edc962b912492eb9824cb0e6007237de18e32 Mon Sep 17 00:00:00 2001 From: tone <3341154833@qq.com> Date: Thu, 29 Aug 2024 13:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=BC=95=E5=85=A5elementplus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ tonecn/package.json | 3 +-- tonecn/src/main.ts | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8ee54e8..4802622 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ coverage *.sw? *.tsbuildinfo +tonecn/pnpm-lock.yaml +tonecn/pnpm-lock.yaml diff --git a/tonecn/package.json b/tonecn/package.json index 747d0eb..4aec70e 100644 --- a/tonecn/package.json +++ b/tonecn/package.json @@ -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", diff --git a/tonecn/src/main.ts b/tonecn/src/main.ts index 5dcad83..747dd64 100644 --- a/tonecn/src/main.ts +++ b/tonecn/src/main.ts @@ -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')