diff --git a/CHANGELOG.MD b/CHANGELOG.MD
index 3519b20d5..b18cac224 100644
--- a/CHANGELOG.MD
+++ b/CHANGELOG.MD
@@ -6,6 +6,7 @@
## 新特性
- 添加关于是否展示web端主题的配置开关
+- 浏览器记住console的多语言切换选择 #549
## 问题修复
diff --git a/console/src/layouts/components/LanguageSelect.vue b/console/src/layouts/components/LanguageSelect.vue
index 2b48991bd..72acc0527 100644
--- a/console/src/layouts/components/LanguageSelect.vue
+++ b/console/src/layouts/components/LanguageSelect.vue
@@ -1,15 +1,27 @@
diff --git a/console/src/stores/layout.ts b/console/src/stores/layout.ts
index 93c185766..55123a725 100644
--- a/console/src/stores/layout.ts
+++ b/console/src/stores/layout.ts
@@ -3,12 +3,14 @@ import { defineStore } from 'pinia';
interface LayoutStoreState {
asideIsExtend: boolean;
currentActivePath: string;
+ i18nCode: string;
}
export const useLayoutStore = defineStore('layout', {
state: (): LayoutStoreState => ({
asideIsExtend: true,
currentActivePath: '/dashboard',
+ i18nCode: 'zh-CN',
}),
actions: {
switchLayoutAsideExtendState() {
@@ -17,6 +19,9 @@ export const useLayoutStore = defineStore('layout', {
updatecurrentActivePathByRoutePath(path) {
this.currentActivePath = path;
},
+ setI18nCode(code:string) {
+ this.i18nCode = code;
+ },
},
// In order to config pinia-plugin-persist, please see https://github.com/Seb-L/pinia-plugin-persist
persist: {
diff --git a/server/src/main/resources/application-dev.yaml b/server/src/main/resources/application-dev.yaml
index 71683c528..8c3208fd5 100644
--- a/server/src/main/resources/application-dev.yaml
+++ b/server/src/main/resources/application-dev.yaml
@@ -3,7 +3,7 @@ ikaros:
plugin:
runtime-mode: development
fixed-plugin-path:
- - C:\Users\li-guohao\GitRepo\ikaros-dev\plugin-alist
+ # - C:\Users\li-guohao\GitRepo\ikaros-dev\plugin-alist
# - C:\Develop\GitRepos\ikaros-dev\plugins\plugin-bgmtv
# - C:\Develop\GitRepos\ikaros-dev\plugins\plugin-local-files-import
# - C:\Develop\GitRepos\ikaros-dev\plugins\plugin-jellyfin