From 7f4b8f1c8ab65abebf5bcd9b2f54611c64a7be09 Mon Sep 17 00:00:00 2001 From: chenchun Date: Mon, 4 Aug 2025 17:07:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9A=97=E8=89=B2?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在HTML根元素添加dark类名以启用暗色模式 - 引入Element Plus暗色主题CSS变量文件 - 格式化代码缩进和结构,提升代码可读性 --- Yi.Bbs.Vue3/index.html | 85 +++++++++++++++++++++-------------------- Yi.Bbs.Vue3/src/main.js | 30 +++++++-------- 2 files changed, 58 insertions(+), 57 deletions(-) diff --git a/Yi.Bbs.Vue3/index.html b/Yi.Bbs.Vue3/index.html index 4e40b468..e65d8ca9 100644 --- a/Yi.Bbs.Vue3/index.html +++ b/Yi.Bbs.Vue3/index.html @@ -1,47 +1,48 @@ - - + + + - .Net意社区 - - - - - - -
-
- - - 意社区很大,你要等一下... -
-
-
- - + .Net意社区 + + + + + - - - - + +
+
+ + + 意社区很大,你要等一下... +
+
+
+ + + + + + + + \ No newline at end of file diff --git a/Yi.Bbs.Vue3/src/main.js b/Yi.Bbs.Vue3/src/main.js index da231070..8f2611cb 100644 --- a/Yi.Bbs.Vue3/src/main.js +++ b/Yi.Bbs.Vue3/src/main.js @@ -8,7 +8,7 @@ import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; import "element-plus/dist/index.css"; import "./assets/main.css"; import "@/assets/styles/index.scss"; // global css - +import 'element-plus/theme-chalk/dark/css-vars.css' import * as ElementPlusIconsVue from "@element-plus/icons-vue"; import directive from "./directive"; // directive @@ -16,17 +16,17 @@ import VueLuckyCanvas from '@lucky-canvas/vue' import "./permission"; -(async () => { - const app = createApp(App); - for (const [key, component] of Object.entries(ElementPlusIconsVue)) { - app.component(key, component); - } - const pinia = createPinia(); - pinia.use(piniaPluginPersistedstate); - app.use(pinia); - directive(app); - app.use(router); - app.use(VueLuckyCanvas); - await router.isReady(); - app.mount("#app"); -})(); +(async() => { + const app = createApp(App); + for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component); + } + const pinia = createPinia(); + pinia.use(piniaPluginPersistedstate); + app.use(pinia); + directive(app); + app.use(router); + app.use(VueLuckyCanvas); + await router.isReady(); + app.mount("#app"); +})(); \ No newline at end of file