页脚显示当前年份

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
-1
View File
@@ -1 +0,0 @@
npx --no-install commitlint --edit $1
+1 -1
View File
@@ -1 +1 @@
npm run lint:lint-staged
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ichangzuo",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"type": "module",
"scripts": {
+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(() => {
+2 -1
View File
@@ -12,7 +12,8 @@ import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
import UnoCSS from "unocss/vite";
import { resolve } from "path";
import { name, version, engines, dependencies, devDependencies } from "./package.json";
import pkg from "./package.json"; //assert { type: "json" };
const { name, version, engines, dependencies, devDependencies } = pkg;
/** @see https://devtools-next.vuejs.org */
// import VueDevTools from "vite-plugin-vue-devtools";