From 10923473750e784649c5f69d13e95d935c9cbd1a Mon Sep 17 00:00:00 2001 From: RogerWork Date: Mon, 23 Oct 2023 13:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AF=AD=E8=A8=80=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E5=AD=A6=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/App.vue | 13 ++++-- src/i18n/index.js | 21 +++++++++ src/i18n/language/en.js | 6 +++ src/i18n/language/zh-cn.js | 6 +++ src/layout/components/PageHeader.vue | 63 ++++++++++++++++++-------- src/main.js | 3 +- src/router/index.js | 2 +- src/views/personal/Message.vue | 11 ----- src/views/personal/PersonalMessage.vue | 15 ++++++ yarn.lock | 34 +++++++++++++- 11 files changed, 140 insertions(+), 36 deletions(-) create mode 100644 src/i18n/index.js create mode 100644 src/i18n/language/en.js create mode 100644 src/i18n/language/zh-cn.js delete mode 100644 src/views/personal/Message.vue create mode 100644 src/views/personal/PersonalMessage.vue diff --git a/package.json b/package.json index f656b1a..ac8749f 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,12 @@ "preview": "vite preview" }, "dependencies": { + "@element-plus/icons-vue": "^2.1.0", "@types/node": "^20.8.7", "element-plus": "^2.4.1", "normalize.css": "^8.0.1", "vue": "^3.3.4", + "vue-i18n": "^9.4.1", "vue-router": "^4.0.13", "vuex": "^4.0.2" }, diff --git a/src/App.vue b/src/App.vue index 5877516..91f3d88 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,19 +1,24 @@ - diff --git a/src/views/personal/PersonalMessage.vue b/src/views/personal/PersonalMessage.vue new file mode 100644 index 0000000..fc5e850 --- /dev/null +++ b/src/views/personal/PersonalMessage.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/yarn.lock b/yarn.lock index 12200c3..4a083d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17,7 +17,7 @@ resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31" integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA== -"@element-plus/icons-vue@^2.0.6": +"@element-plus/icons-vue@^2.0.6", "@element-plus/icons-vue@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@element-plus/icons-vue/-/icons-vue-2.1.0.tgz#7ad90d08a8c0d5fd3af31c4f73264ca89614397a" integrity sha512-PSBn3elNoanENc1vnCfh+3WA9fimRC7n+fWkf3rE5jvv+aBohNHABC/KAR5KWPecxWxDTVT1ERpRbOMRcOV/vA== @@ -152,6 +152,27 @@ resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.1.6.tgz#22958c042e10b67463997bd6ea7115fe28cbcaf9" integrity sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A== +"@intlify/core-base@9.4.1": + version "9.4.1" + resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-9.4.1.tgz#5ab9b624a34af2299a9b45aa331b6516c169b8b5" + integrity sha512-WIwx+elsZbxSMxRG5+LC+utRohFvmZMoDevfKOfnYMLbpCjCSavqTfHJAtfsY6ruowzqXeKkeLhRHbYbjoJx5g== + dependencies: + "@intlify/message-compiler" "9.4.1" + "@intlify/shared" "9.4.1" + +"@intlify/message-compiler@9.4.1": + version "9.4.1" + resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-9.4.1.tgz#aa00629a455e23cece3464293834a02994b4fb04" + integrity sha512-aN2N+dUx320108QhH51Ycd2LEpZ+NKbzyQ2kjjhqMcxhHdxtOnkgdx+MDBhOy/CObwBmhC3Nygzc6hNlfKvPNw== + dependencies: + "@intlify/shared" "9.4.1" + source-map-js "^1.0.2" + +"@intlify/shared@9.4.1": + version "9.4.1" + resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-9.4.1.tgz#bd0d221aaac476b6778a10ddcd0472f812c64e27" + integrity sha512-A51elBmZWf1FS80inf/32diO9DeXoqg9GR9aUDHFcfHoNDuT46Q+fpPOdj8jiJnSHSBh8E1E+6qWRhAZXdK3Ng== + "@jridgewell/sourcemap-codec@^1.4.15": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" @@ -268,7 +289,7 @@ "@vue/compiler-dom" "3.3.4" "@vue/shared" "3.3.4" -"@vue/devtools-api@^6.0.0", "@vue/devtools-api@^6.0.0-beta.11": +"@vue/devtools-api@^6.0.0", "@vue/devtools-api@^6.0.0-beta.11", "@vue/devtools-api@^6.5.0": version "6.5.1" resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.5.1.tgz#7f71f31e40973eeee65b9a64382b13593fdbd697" integrity sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA== @@ -850,6 +871,15 @@ vue-demi@*: resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.14.6.tgz#dc706582851dc1cdc17a0054f4fec2eb6df74c92" integrity sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w== +vue-i18n@^9.4.1: + version "9.4.1" + resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-9.4.1.tgz#c7402662fe9b40b17798afffa9d8bfa4734dd7f5" + integrity sha512-vnQyYE9LBuNOqPpETIcCaGnAyLEqfeIvDcyZ9T+WBCWFTqWw1J8FuF1jfeDwpHBi5JKgAwgXyq1mt8jp/x/GPA== + dependencies: + "@intlify/core-base" "9.4.1" + "@intlify/shared" "9.4.1" + "@vue/devtools-api" "^6.5.0" + vue-router@^4.0.13: version "4.0.13" resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.0.13.tgz#47f06e2f8ff6120bfff3c27ade1356cc9de7d870"