From 4c014a4f8034bd8c73aba8d909a58f63d5c4ec89 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 17 一月 2025 08:39:18 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/layout/components/Footer/src/Footer.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/layout/components/Footer/src/Footer.vue b/src/layout/components/Footer/src/Footer.vue index 62302fc..c5a1d1a 100644 --- a/src/layout/components/Footer/src/Footer.vue +++ b/src/layout/components/Footer/src/Footer.vue @@ -12,6 +12,10 @@ const appStore = useAppStore() const title = computed(() => appStore.getTitle) + + +// 添加当前年份计算属性 +const currentYear = computed(() => new Date().getFullYear()) </script> <template> @@ -19,6 +23,6 @@ :class="prefixCls" class="h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)] overflow-hidden" > - <span class="text-14px">Copyright ©2022-{{ title }}</span> + <span class="text-14px">Copyright ©{{ currentYear }} {{ title }}</span> </div> </template> -- Gitblit v1.9.3