From bdae2cbd6394028850fc977d505a099cff659775 Mon Sep 17 00:00:00 2001 From: Strange <3304393868@qq.com> Date: Wed, 17 Jul 2024 19:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=8A=B6=E6=80=81=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsconfig.json | 4 +- package.json | 3 + src/components/Xuaua_header.vue | 90 ++++++++++++ src/main.js | 9 +- src/views/home/index.vue | 229 +++++++++++++---------------- src/views/login/index.vue | 248 +++++++++++++++++--------------- 6 files changed, 326 insertions(+), 257 deletions(-) create mode 100644 src/components/Xuaua_header.vue diff --git a/jsconfig.json b/jsconfig.json index 9cb7790..2b4bf83 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -3,7 +3,9 @@ "baseUrl": "./", "paths": { "@/*": ["./src/*"] - } + }, + "types": ["element-plus/global"] + }, "exclude": ["node_modules", "dist"] } diff --git a/package.json b/package.json index c696075..9d659cd 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,8 @@ "unplugin-auto-import": "^0.18.0", "unplugin-vue-components": "^0.27.2", "vite": "^5.3.1" + }, + "volta": { + "node": "16.18.1" } } diff --git a/src/components/Xuaua_header.vue b/src/components/Xuaua_header.vue new file mode 100644 index 0000000..0574c33 --- /dev/null +++ b/src/components/Xuaua_header.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/main.js b/src/main.js index 582fad2..dc716bc 100644 --- a/src/main.js +++ b/src/main.js @@ -3,19 +3,16 @@ 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' // 如果您正在使用CDN引入,请删除下面一行。 -import * as ElementPlusIconsVue from '@element-plus/icons-vue' +// import * as ElementPlusIconsVue from '@element-plus/icons-vue' const app = createApp(App) app.use(createPinia()) app.use(router) -app.use(ElementPlus, { size: 'small', zIndex: 3000 }) -for (const [key, component] of Object.entries(ElementPlusIconsVue)) { - app.component(key, component) - } +app.use(ElementPlus) app.mount('#app') diff --git a/src/views/home/index.vue b/src/views/home/index.vue index d07cfe9..e300938 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,25 +1,7 @@ - + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 06c5849..9e54591 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,11 +1,30 @@