perf: 点击切换语言一级菜单出现的兼容问题

This commit is contained in:
kuaifan 2022-02-10 17:10:18 +08:00
parent f7cd4f34d3
commit bc3932c8b8
2 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,9 @@ export default {
* @param language * @param language
*/ */
setLanguage(language) { setLanguage(language) {
if (language === undefined) {
return
}
this.__initLanguageData(); this.__initLanguageData();
setTimeout(() => { setTimeout(() => {
window.localStorage['__language:type__'] = language; window.localStorage['__language:type__'] = language;

View File

@ -516,6 +516,9 @@ export default {
}, },
setTheme(mode) { setTheme(mode) {
if (mode === undefined) {
return;
}
if (!$A.isChrome()) { if (!$A.isChrome()) {
$A.modalWarning("仅客户端或Chrome浏览器支持主题功能"); $A.modalWarning("仅客户端或Chrome浏览器支持主题功能");
return; return;