页脚显示当前年份
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
npx --no-install commitlint --edit $1
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
npm run lint:lint-staged
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ichangzuo",
|
"name": "ichangzuo",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="icp-info" ref="icpRef">
|
<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 class="icp"><a href="http://beian.miit.gov.cn" target="_blank">苏ICP备13035645号-1</a></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const icpRef = ref();
|
const icpRef = ref();
|
||||||
const { width } = useWindowSize();
|
const { width } = useWindowSize();
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
||||||
/** 根据屏幕宽度切换设备模式 */
|
/** 根据屏幕宽度切换设备模式 */
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
|
|||||||
+2
-1
@@ -12,7 +12,8 @@ import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
|||||||
|
|
||||||
import UnoCSS from "unocss/vite";
|
import UnoCSS from "unocss/vite";
|
||||||
import { resolve } from "path";
|
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 */
|
/** @see https://devtools-next.vuejs.org */
|
||||||
// import VueDevTools from "vite-plugin-vue-devtools";
|
// import VueDevTools from "vite-plugin-vue-devtools";
|
||||||
|
|||||||
Reference in New Issue
Block a user