diff --git a/index.html b/index.html index 4441eb6..9677e1b 100644 --- a/index.html +++ b/index.html @@ -13,10 +13,83 @@ -
+
+ +
+
+ + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d3312f2..dcdbdc5 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -84,7 +84,17 @@ />
- + + +
@@ -275,6 +285,16 @@ function handleLogin() { onMounted(() => { getCaptcha(); + + // 主题初始化 + const theme = useSettingsStore().theme; + console.log("登录页面主题", theme); + useSettingsStore().changeSetting({ key: "theme", value: theme }); + if (theme == "dark") { + document.documentElement.classList.add("dark"); + } else { + document.documentElement.classList.remove("dark"); + } }); @@ -286,6 +306,7 @@ onMounted(() => { .login-container { @apply w-full h-full flex-center; + overflow-y: auto; background: url("@/assets/images/login-bg.jpg") no-repeat center right; .login-form { @@ -296,10 +317,19 @@ onMounted(() => { top: 0; right: 0; - img { - width: 120px; - height: 48px; - cursor: pointer; + .image-slot { + display: flex; + align-items: center; + justify-content: right; + width: 100%; + height: 100%; + font-size: 18px; + color: var(--el-text-color-secondary); + background: var(--el-fill-color-light); + + svg { + margin-right: 10px; + } } } }