修复登录界面首次进入加载背景异常
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {useUserStore} from "@/store/user.js";
|
||||
import {useSettingStore} from "@/store/setting.js";
|
||||
import {useAccountStore} from "@/store/account.js";
|
||||
import {useUiStore} from "@/store/ui.js";
|
||||
import {loginUserInfo} from "@/request/my.js";
|
||||
import {permsToRouter} from "@/perm/perm.js";
|
||||
import router from "@/router";
|
||||
@@ -25,10 +24,6 @@ export async function init() {
|
||||
|
||||
i18n.global.locale.value = settingStore.lang
|
||||
|
||||
const uiStore = useUiStore();
|
||||
let doc = document.querySelector("html");
|
||||
doc.setAttribute('class', uiStore.dark ? 'dark' : '');
|
||||
|
||||
let setting = null;
|
||||
|
||||
if (token) {
|
||||
|
||||
@@ -27,10 +27,13 @@ body {
|
||||
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
||||
line-height: 1.5;
|
||||
color: var(--el-text-color-primary);
|
||||
background-color: var(--el-bg-color);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background: var(--el-bg-color);
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user