From 121d88a889469123fbbb38b1f7d3030410602752 Mon Sep 17 00:00:00 2001 From: zimo493 <2081182432@qq.com> Date: Fri, 5 Sep 2025 08:18:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20(i18n)=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E8=AF=AD=E8=A8=80=E9=85=8D=E7=BD=AE=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 zh-cn 和 en 对象中的展开操作符 --- src/lang/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lang/index.ts b/src/lang/index.ts index efa06e98..436f1230 100644 --- a/src/lang/index.ts +++ b/src/lang/index.ts @@ -8,12 +8,8 @@ import zhCnLocale from "./package/zh-cn.json"; const appStore = useAppStoreHook(); const messages = { - "zh-cn": { - ...zhCnLocale, - }, - en: { - ...enLocale, - }, + "zh-cn": zhCnLocale, + en: enLocale, }; const i18n = createI18n({