diff --git a/src/frontend/src/App.vue b/src/frontend/src/App.vue index 3f8c20fb09..0e5f09122e 100644 --- a/src/frontend/src/App.vue +++ b/src/frontend/src/App.vue @@ -253,6 +253,7 @@ }); setLocale(lang); jsonp(`${this.envConfig['esb.url']}/api/c/compapi/v2/usermanage/fe_update_user_language/?language=${lang.toLocaleLowerCase()}`); + window.location.reload(); }, /** * @desc 显示版本更新日志 diff --git a/src/frontend/src/i18n/index.js b/src/frontend/src/i18n/index.js index 0a35f9da4d..1ca5dd0609 100644 --- a/src/frontend/src/i18n/index.js +++ b/src/frontend/src/i18n/index.js @@ -58,8 +58,6 @@ const i18n = new VueI18n({ messages, }); -console.log('i18n = ', i18n); - if (localeLanguage === 'zh-CN') { locale.use(lang.zhCN); } else { @@ -79,7 +77,7 @@ export const loadLanguage = (localPackage) => { export const setLocale = (locale) => { const realLocal = locale === 'en' ? 'en-US' : 'zh-CN'; if (Object.prototype.hasOwnProperty.call(messages, realLocal)) { - i18n.locale = realLocal; + i18n._vm.locale = realLocal; // eslint-disable-line no-underscore-dangle document.querySelector('html').setAttribute('lang', realLocal); } }; diff --git a/src/frontend/src/views/cron-job/list/components/operation/crontab/index.vue b/src/frontend/src/views/cron-job/list/components/operation/crontab/index.vue index 6bc745943a..bdefea8c63 100644 --- a/src/frontend/src/views/cron-job/list/components/operation/crontab/index.vue +++ b/src/frontend/src/views/cron-job/list/components/operation/crontab/index.vue @@ -234,7 +234,6 @@ this.isGrammarError = true; return; } - console.log('valueList = ', dayOfMonth, dayOfWeek); try { this.checkAndTranslate(value); diff --git a/src/frontend/src/views/script-manage/version/index.vue b/src/frontend/src/views/script-manage/version/index.vue index 6a8b4a46e3..c62f38a4be 100644 --- a/src/frontend/src/views/script-manage/version/index.vue +++ b/src/frontend/src/views/script-manage/version/index.vue @@ -479,7 +479,6 @@ * @returns { Boolean } */ isCopyCreateDisabled() { - console.log('isCopyCreateDisabled =', this.dataMemo, !!_.find(this.dataMemo, scriptVersion => scriptVersion.isDraft)); return !!_.find(this.dataMemo, scriptVersion => scriptVersion.isDraft); }, /** diff --git a/src/frontend/src/views/task-manage/setting-variable/index.vue b/src/frontend/src/views/task-manage/setting-variable/index.vue index 8563728681..c9f3bc3139 100644 --- a/src/frontend/src/views/task-manage/setting-variable/index.vue +++ b/src/frontend/src/views/task-manage/setting-variable/index.vue @@ -293,7 +293,6 @@ .reduce((result, item) => Object.assign(result, { [item.name]: item, }), {}); - console.log('lastExecuteVariableMap = ', this.planId, lastExecuteVariableMap); const replaceVariableValue = (variableList, lastExecuteVariableMap) => { const variableListResult = [...variableList];