diff --git a/src/App.vue b/src/App.vue index cb45d311a28cff5eae9558899c8806f60b68cb5d..e6346e606073b2712c91b26ce7a389ec321b8b82 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 22200cc714a906ee0b35bffc3f125e8ab3566824..9c6785818a75e8d1b55a013631c6cea56329f22f 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -13,7 +13,7 @@