新增规则触发人机验证和加载失败提示

This commit is contained in:
eoao
2025-07-29 20:00:00 +08:00
parent d03b7ca21d
commit 3a40cfc63b
25 changed files with 632 additions and 273 deletions

View File

@@ -6,6 +6,7 @@ import {permsToRouter} from "@/perm/perm.js";
import router from "@/router";
import {websiteConfig} from "@/request/setting.js";
import {cvtR2Url} from "@/utils/convert.js";
import i18n from "@/i18n/index.js";
export async function init() {
document.title = '\u200B'
@@ -15,11 +16,12 @@ export async function init() {
const accountStore = useAccountStore();
const token = localStorage.getItem('token');
if (!settingStore.lang) {
settingStore.lang = navigator.language.split('-')[0]
}
i18n.global.locale.value = settingStore.lang
let setting = null;
if (token) {