diff --git a/src/frontend/src/App.vue b/src/frontend/src/App.vue
index 0e5f09122e..737d886c10 100644
--- a/src/frontend/src/App.vue
+++ b/src/frontend/src/App.vue
@@ -47,21 +47,21 @@
+ :class="{ active: currentLangType === 'lang-zh' }"
+ @click="handleToggleLang('zh-CN')">
- English
+ type="lang-zh" />
+ 中文
+ :class="{ active: currentLangType === 'lang-en' }"
+ @click="handleToggleLang('en')">
- 中文
+ type="lang-en" />
+ English
@@ -248,7 +248,7 @@
handleToggleLang(lang) {
Cookie.remove('blueking_language', { path: '' });
Cookie.set('blueking_language', lang.toLocaleLowerCase(), {
- expires: 3600,
+ expires: 365,
domain: this.envConfig.bkDomain,
});
setLocale(lang);