Commit b72c8b28 by 无尘

fix: 修复时间自动获取

parent 087f4876
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "@gic-test/vue-gic-footer", "name": "@gic-test/vue-gic-footer",
"description": "vue-gic-footer Plugin", "description": "vue-gic-footer Plugin",
"author": "fairyly <498745097@qq.com>", "author": "fairyly <498745097@qq.com>",
"version": "1.0.9", "version": "1.0.10",
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"main": "dist/vue-gic-footer.js", "main": "dist/vue-gic-footer.js",
......
<template> <template>
<div class="footlogo"> <div class="footlogo">
<img src="./foot.png" alt="footer"/> <img src="./foot.png" alt="footer"/>
<p class="footlogo-text">Copyright © 2018 达摩网络</p> <p class="footlogo-text">Copyright © {{ currentYear }} 达摩网络</p>
</div> </div>
</template> </template>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
props: [], props: [],
data () { data () {
return { return {
currentYear: ''
} }
}, },
methods: { methods: {
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
/* 接收数据 */ /* 接收数据 */
mounted(){ mounted(){
this.currentYear = new Date().getFullYear();
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment