新增规则触发人机验证和加载失败提示
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user