From 14e35fcd91b21d8e40c81b86dae1c10b4df61996 Mon Sep 17 00:00:00 2001 From: yma16 <17685043634@163.com> Date: Wed, 14 Sep 2022 22:36:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D=E5=92=8C?= =?UTF-8?q?=E5=A4=A9=E6=B0=94=E6=A0=87=E9=A2=98=E7=94=B1=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 17 ++++++++----- src/components/Article.vue | 46 +++++++++++++++++++++++------------ src/weather/EchartWeather.vue | 15 ++++-------- 3 files changed, 47 insertions(+), 31 deletions(-) diff --git a/src/App.vue b/src/App.vue index cb45d31..e6346e6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -108,9 +108,8 @@ @@ -140,6 +137,8 @@ export default { name: 'App', data () { return { + // 开始时间 + startTime: '', authSlogan: 'yma16', chat_flag: false, msg: 'yma16', @@ -164,10 +163,16 @@ export default { } }, mounted () { + this.initStartTime() this.addReadCountFun() this.readCountFun() }, methods: { + initStartTime () { + const now = new Date() + const year = now.getFullYear() + this.startTime = `2021-${year}` + }, jumpIpDns: function () { try { window.open('https://beian.miit.gov.cn') diff --git a/src/components/Article.vue b/src/components/Article.vue index 22200cc..9c67858 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -13,7 +13,7 @@