From 6a72da7900390c3048d7eb07a8e93ed776f5676b Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期四, 16 一月 2025 13:28:22 +0800 Subject: [PATCH] 修改指标分类为选择tree,增加选择框可编辑 --- src/layout/components/Footer/src/Footer.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Footer/src/Footer.vue b/src/layout/components/Footer/src/Footer.vue index 5510159..c5a1d1a 100644 --- a/src/layout/components/Footer/src/Footer.vue +++ b/src/layout/components/Footer/src/Footer.vue @@ -12,13 +12,17 @@ const appStore = useAppStore() const title = computed(() => appStore.getTitle) + + +// 添加当前年份计算属性 +const currentYear = computed(() => new Date().getFullYear()) </script> <template> <div :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)]" + 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 ©2024-{{ title }}</span> + <span class="text-14px">Copyright ©{{ currentYear }} {{ title }}</span> </div> </template> -- Gitblit v1.9.3