修复安卓报错问题
This commit is contained in:
@@ -598,9 +598,7 @@ function fuzzyMatchUpdateQueryStringParameterFun() {
|
|||||||
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
||||||
// 初始化国际化
|
// 初始化国际化
|
||||||
initLocalLang();
|
initLocalLang();
|
||||||
if (language == "ar") {
|
langCodeFun(langCode);
|
||||||
document.documentElement.setAttribute("dir", "rtl")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
console.log('ios deviceInfo', pubInfo.deviceInfo);
|
console.log('ios deviceInfo', pubInfo.deviceInfo);
|
||||||
@@ -609,16 +607,10 @@ function fuzzyMatchUpdateQueryStringParameterFun() {
|
|||||||
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
||||||
// 初始化国际化
|
// 初始化国际化
|
||||||
initLocalLang();
|
initLocalLang();
|
||||||
console.log("langCode1",langCode);
|
langCodeFun(langCode);
|
||||||
if (langCode == "ar") {
|
|
||||||
document.documentElement.setAttribute("dir", "rtl")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
fuzzyMatchUpdateQueryStringParameterFun();
|
fuzzyMatchUpdateQueryStringParameterFun();
|
||||||
console.log("langCode2",langCode);
|
langCodeFun(langCode);
|
||||||
if (langCode == "ar") {
|
|
||||||
document.documentElement.setAttribute("dir", "rtl")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, 40)
|
}, 40)
|
||||||
// 初始化国际化
|
// 初始化国际化
|
||||||
@@ -629,9 +621,12 @@ function fuzzyMatchUpdateQueryStringParameterFun() {
|
|||||||
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
history.replaceState(null, null, updateQueryStringParameter(window.location.href, 'lang', langCode));
|
||||||
// 初始化国际化
|
// 初始化国际化
|
||||||
initLocalLang();
|
initLocalLang();
|
||||||
if (langCode == "ar") {
|
langCodeFun(langCode);
|
||||||
document.documentElement.setAttribute("dir", "rtl")
|
}
|
||||||
}
|
}
|
||||||
|
function langCodeFun(langCode) {
|
||||||
|
if (langCode == "ar") {
|
||||||
|
document.documentElement.setAttribute("dir", "rtl");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 获取整条url
|
// 获取整条url
|
||||||
|
Reference in New Issue
Block a user