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 @@