页脚显示当前年份
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user