From 8bb04df9a9f1d59485bcda05cb874c68359d8db6 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Fri, 8 Dec 2023 09:09:13 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E8=AF=AD=E8=A8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 2 ++
manifest.json | 3 ++-
pages/login/login.vue | 18 +++++++++---------
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/main.js b/main.js
index 1abc647..ad9c57c 100644
--- a/main.js
+++ b/main.js
@@ -1,5 +1,6 @@
import App from './App'
import Vue from 'vue'
+import i18n from './locale/index.js'
Vue.config.productionTip = false
App.mpType = 'app'
@@ -28,6 +29,7 @@ Vue.directive('enterNumber', {
import store from '@/vuex/store.js'
const app = new Vue({
+ i18n,
...App,
store
})
diff --git a/manifest.json b/manifest.json
index 86e4a2a..78d0d7c 100644
--- a/manifest.json
+++ b/manifest.json
@@ -109,5 +109,6 @@
"router" : {
"base" : "./"
}
- }
+ },
+ "locale" : "auto"
}
diff --git a/pages/login/login.vue b/pages/login/login.vue
index bf7ddd0..4181477 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -1,23 +1,23 @@
- 欢迎来到
- 海亮铜箔手持系统!
+ {{$t('login.text1')}}
+ {{$t('login.text2')}}
-
+
-
+
- 记住用户名
+ {{$t('login.remember')}}
- 设置
- 升级版本
+ {{$t('login.settings')}}
+ {{$t('login.upgrade')}}
-
+
v{{version}}
@@ -25,7 +25,7 @@