From d65c7f8012a57f961d1c14463c9a6e26bae7cced Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Wed, 28 Oct 2020 17:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/components/NavTop.vue | 43 ++++++++++++++++++++------- src/components/login/LoginTab.vue | 9 ++++-- src/i18n/en.ts | 28 ++++++++++++++++++ src/i18n/init.ts | 6 ++-- src/i18n/zh.ts | 26 ++++++++++++++++- src/static/images/duihao.png | Bin 0 -> 3273 bytes src/utils/i18n.ts | 1 + src/views/login/Login.vue | 47 +++++++++++++++--------------- 9 files changed, 121 insertions(+), 40 deletions(-) create mode 100644 src/i18n/en.ts create mode 100644 src/static/images/duihao.png diff --git a/src/App.vue b/src/App.vue index cb5bc53..686aa3d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,6 +19,7 @@ import zhCN from 'ant-design-vue/es/locale/zh_CN'; export default defineComponent({ setup(){ + console.log(i18ninit) provideI18n(i18ninit); if(getValue('token')){ store.commit("login", true) diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index c3df605..f8780ac 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -21,9 +21,10 @@