File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,14 @@ function remoteMethod(data) {
79
79
80
80
function handleChange(path ) {
81
81
router .push ({ path })
82
+ hiddenSearch ()
82
83
hiddenTopSearch ()
83
84
}
84
85
86
+ function hiddenSearch() {
87
+ showSearch .value = false
88
+ }
89
+
85
90
function hiddenTopSearch() {
86
91
showTopSearch .value = false
87
92
}
Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ const prefixCls = getPrefixCls('footer')
12
12
const appStore = useAppStore ()
13
13
14
14
const title = computed (() => appStore .getTitle )
15
+
16
+ // 添加当前年份计算属性
17
+ const currentYear = computed (() => new Date ().getFullYear ())
15
18
</script >
16
19
17
20
<template >
18
21
<div
19
22
:class =" prefixCls"
20
23
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"
21
24
>
22
- <span class =" text-14px" >Copyright ©2022- {{ title }}</span >
25
+ <span class =" text-14px" >Copyright ©{{ currentYear }} {{ title }}</span >
23
26
</div >
24
27
</template >
You can’t perform that action at this time.
0 commit comments