Browse Source

国际化

tangning 2 năm trước cách đây
mục cha
commit
719a7b36cb
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      index.html
  2. 1 0
      src/i18n/index.js

+ 1 - 1
index.html

@@ -4,7 +4,7 @@
     <meta charset="UTF-8">
     <link rel="icon" href="/favicon.ico">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Vite App</title>
+    <title>四维看看</title>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 0
src/i18n/index.js

@@ -15,6 +15,7 @@ if (!current) {
       current = 'zh'
     }
 }
+document.title = current === 'en' ? '4DAGE' : '四维时代'
 
 const i18n = createI18n({
   legacy: false,