页脚显示当前年份

This commit is contained in:
2026-08-16 11:22:02 +08:00
parent 612a567f2f
commit 30b5554d60
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
<template>
<div class="icp-info" ref="icpRef">
<div>Copyright © 2013 - 2024 iChangzuo.com All Rights Reserved.</div>
<div>Copyright © 2013 - {{ currentYear }} iChangzuo.com All Rights Reserved.</div>
<div class="icp"><a href="http://beian.miit.gov.cn" target="_blank">苏ICP备13035645号-1</a></div>
</div>
</template>
@@ -8,6 +8,7 @@
<script setup>
const icpRef = ref();
const { width } = useWindowSize();
const currentYear = new Date().getFullYear();
/** 根据屏幕宽度切换设备模式 */
watchEffect(() => {