v0.7.2: 修复登录页面版本号和主题初始化
This commit is contained in:
@@ -69,16 +69,19 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-8 text-center text-sm text-gray-400 dark:text-gray-500">
|
||||
智队中枢 v0.7.0
|
||||
智队中枢 v0.7.2
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 主题切换
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
if (savedTheme === 'dark') {
|
||||
// 立即应用主题 - 防止闪烁
|
||||
(function() {
|
||||
const theme = localStorage.getItem('theme') || 'light';
|
||||
if (theme === 'dark') {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
})();
|
||||
|
||||
// 登录处理
|
||||
document.getElementById('login-form').addEventListener('submit', async (e) => {
|
||||
|
||||
Reference in New Issue
Block a user