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 @@
"name": "@gic-test/vue-gic-footer",
"description": "vue-gic-footer Plugin",
"author": "fairyly <498745097@qq.com>",
"version": "1.0.9",
"version": "1.0.10",
"license": "MIT",
"private": false,
"main": "dist/vue-gic-footer.js",
......
<template>
<div class="footlogo">
<img src="./foot.png" alt="footer"/>
<p class="footlogo-text">Copyright © 2018 达摩网络</p>
<p class="footlogo-text">Copyright © {{ currentYear }} 达摩网络</p>
</div>
</template>
......@@ -11,7 +11,7 @@
props: [],
data () {
return {
currentYear: ''
}
},
methods: {
......@@ -24,7 +24,7 @@
/* 接收数据 */
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