From 44f87a712a9ccd7346b73cc09781172050060c01 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Tue, 21 Jul 2020 00:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83-=E6=88=91?= =?UTF-8?q?=E7=9A=84=E4=B8=8A=E4=BC=A0=E3=80=81=E6=88=91=E7=9A=84=E6=94=B6?= =?UTF-8?q?=E8=97=8F=20=E7=AC=94=E8=AE=B0=E5=88=97=E8=A1=A8+=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/center/collect.vue | 32 ++++++++++-- components/center/myupload.vue | 31 ++++++++++-- components/center/security.vue | 89 +++++++++++++++++++++++++--------- nuxt.config.js | 80 +++++++++++++++++++++++++++--- package.json | 1 + pages/index/note.vue | 38 ++++++++++++++- pages/index/upload.vue | 6 +-- plugins/moment.js | 4 ++ yarn.lock | 5 ++ 9 files changed, 243 insertions(+), 43 deletions(-) create mode 100644 plugins/moment.js diff --git a/components/center/collect.vue b/components/center/collect.vue index 5c53fb2..2aa1d2e 100644 --- a/components/center/collect.vue +++ b/components/center/collect.vue @@ -1,9 +1,33 @@ diff --git a/components/center/myupload.vue b/components/center/myupload.vue index 53f87b8..c2def81 100644 --- a/components/center/myupload.vue +++ b/components/center/myupload.vue @@ -1,9 +1,32 @@ diff --git a/components/center/security.vue b/components/center/security.vue index 60c1e6a..60535a3 100644 --- a/components/center/security.vue +++ b/components/center/security.vue @@ -1,25 +1,28 @@ diff --git a/pages/index/upload.vue b/pages/index/upload.vue index 16d2e0b..1200c24 100644 --- a/pages/index/upload.vue +++ b/pages/index/upload.vue @@ -72,7 +72,7 @@ - {{$t('submit')}} + {{$t('button.submit')}} @@ -140,11 +140,11 @@ }, //确认移除论文 beforeRemove(file: { name: string }, fileList: any) { - return this.$confirm(this.$t('upload.form.remove',{file:file.name})) + return this.$confirm(this.$t('upload.form.remove',{file:file.name}).toString()) }, //提交论文 onSubmit(){ - + this.$alert(this.$t('upload.tip.ok').toString()) } } }) diff --git a/plugins/moment.js b/plugins/moment.js new file mode 100644 index 0000000..e6fbe97 --- /dev/null +++ b/plugins/moment.js @@ -0,0 +1,4 @@ +import Vue from 'vue' +import moment from 'moment' + +Vue.prototype.$moment = moment diff --git a/yarn.lock b/yarn.lock index 47df793..e8d810e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6720,6 +6720,11 @@ mkdirp@^1.0.4: resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-1.0.4.tgz?cache=0&sync_timestamp=1587535418745&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmkdirp%2Fdownload%2Fmkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha1-PrXtYmInVteaXw4qIh3+utdcL34= +moment@^2.27.0: + version "2.27.0" + resolved "https://registry.npm.taobao.org/moment/download/moment-2.27.0.tgz?cache=0&sync_timestamp=1592517925956&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmoment%2Fdownload%2Fmoment-2.27.0.tgz#8bff4e3e26a236220dfe3e36de756b6ebaa0105d" + integrity sha1-i/9OPiaiNiIN/j423nVrbrqgEF0= + move-concurrently@^1.0.1: version "1.0.1" resolved "https://registry.npm.taobao.org/move-concurrently/download/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"