diff --git a/.ls-lint.yml b/.ls-lint.yml
index 8f73ee92..1e34a0c0 100644
--- a/.ls-lint.yml
+++ b/.ls-lint.yml
@@ -21,3 +21,4 @@ ignore:
- dist
- .local
- .husky
+ - src/locales/lang
diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md
index 4cf6dc7a..d6d0db05 100644
--- a/CHANGELOG.zh_CN.md
+++ b/CHANGELOG.zh_CN.md
@@ -1,5 +1,9 @@
## Wip
+### ✨ Refactor
+
+- 重构多语言模块,支持懒加载及远程加载
+
### ✨ Features
- axios 支持 form-data 格式请求
diff --git a/package.json b/package.json
index 015f5875..3aac748a 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"@iconify/iconify": "^2.0.0-rc.6",
"@vueuse/core": "^4.3.0",
"@zxcvbn-ts/core": "^0.2.0",
- "ant-design-vue": "2.0.0",
+ "ant-design-vue": "2.0.1",
"apexcharts": "^3.25.0",
"axios": "^0.21.1",
"crypto-js": "^4.0.0",
@@ -106,7 +106,7 @@
"vite-plugin-pwa": "^0.5.5",
"vite-plugin-style-import": "^0.7.5",
"vite-plugin-theme": "^0.4.8",
- "vite-plugin-windicss": "0.5.4",
+ "vite-plugin-windicss": "0.6.0",
"vue-eslint-parser": "^7.5.0",
"yargs": "^16.2.0"
},
diff --git a/src/App.vue b/src/App.vue
index 79e54844..9b45da50 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,5 @@
-
+
@@ -21,9 +21,7 @@
components: { ConfigProvider, AppProvider },
setup() {
// support Multi-language
- const { antConfigLocale, setLocale } = useLocale();
-
- setLocale();
+ const { getAntdLocale } = useLocale();
// Initialize vuex internal system configuration
initAppConfigStore();
@@ -31,10 +29,7 @@
// Create a lock screen monitor
const lockEvent = useLockPage();
- return {
- antConfigLocale,
- lockEvent,
- };
+ return { getAntdLocale, lockEvent };
},
});
diff --git a/src/components/Application/src/AppLocalePicker.vue b/src/components/Application/src/AppLocalePicker.vue
index c7f69156..9f196f6a 100644
--- a/src/components/Application/src/AppLocalePicker.vue
+++ b/src/components/Application/src/AppLocalePicker.vue
@@ -18,7 +18,7 @@