Browse Source

perf: 多语言默认英文

曾坤森 3 months ago
parent
commit
6f78c3600f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      .env.production
  2. 1 1
      src/locale/index.ts

+ 2 - 2
.env.production

@@ -1,3 +1,3 @@
 VITE_NODE_ENV= production
-VITE_API_BASE_URL= 'http://localhost:8080/'
-VITE_API_DOWN_URL= 'http://192.168.1.28:5000/'
+VITE_API_BASE_URL= 'http://192.168.31.29:5000/'
+VITE_API_DOWN_URL= 'http://192.168.31.29:5000/'

+ 1 - 1
src/locale/index.ts

@@ -6,7 +6,7 @@ export const LOCALE_OPTIONS = [
   { label: '中文', value: 'zh-CN' },
   { label: 'English', value: 'en-US' },
 ];
-const defaultLocale = localStorage.getItem('arco-locale') || 'zh-CN';
+const defaultLocale = localStorage.getItem('arco-locale') || 'zh-US';
 
 const i18n = createI18n({
   locale: defaultLocale,