feat: 默认跟随系统主题和浏览器语言

This commit is contained in:
Nixevol
2026-07-05 02:05:53 +08:00
parent 4dc9528397
commit 76bdf4fa3f
7 changed files with 53 additions and 9 deletions
+7 -2
View File
@@ -1,6 +1,7 @@
<template>
<div class="login-wrap">
<div class="login-lang">
<div class="login-tools">
<theme-switch />
<lang-switch />
</div>
<div class="login-left">
@@ -54,6 +55,7 @@ import { useAuthStore } from '@/stores/auth';
import { message } from '@/utils/feedback';
import { resolveAppIcon, setFavicon } from '@/utils/appIcon';
import LangSwitch from '@/components/LangSwitch.vue';
import ThemeSwitch from '@/components/ThemeSwitch.vue';
const { t } = useI18n();
const router = useRouter();
@@ -108,11 +110,14 @@ onMounted(async () => {
display: flex;
height: 100vh;
}
.login-lang {
.login-tools {
position: absolute;
top: 20px;
right: 24px;
z-index: 2;
display: inline-flex;
align-items: center;
gap: 8px;
}
.login-left {
flex: 1 1 55%;