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')