refactor: 代码重构优化(VueUse使用)

Former-commit-id: f33b8d352dd9e9b2a706c94cdd7afa150ac12931
This commit is contained in:
haoxr
2023-03-01 00:47:39 +08:00
parent 1e6e202ce6
commit 599624e944
16 changed files with 164 additions and 194 deletions

View File

@@ -1,6 +1,5 @@
// 自定义国际化配置
import { createI18n } from 'vue-i18n';
import { localStorage } from '@/utils/localStorage';
// 本地语言包
import enLocale from './en';
@@ -22,7 +21,7 @@ const messages = {
*/
export const getLanguage = () => {
// 本地缓存获取
let language = localStorage.get('language');
let language = localStorage.getItem('language');
if (language) {
return language;
}