Skip to content

Commit 101ed36

Browse files
committed
2 parents 452d602 + 48e7e7e commit 101ed36

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/RouterSearch/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ function remoteMethod(data) {
7979
8080
function handleChange(path) {
8181
router.push({ path })
82+
hiddenSearch()
8283
hiddenTopSearch()
8384
}
8485
86+
function hiddenSearch() {
87+
showSearch.value = false
88+
}
89+
8590
function hiddenTopSearch() {
8691
showTopSearch.value = false
8792
}

src/layout/components/Footer/src/Footer.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ const prefixCls = getPrefixCls('footer')
1212
const appStore = useAppStore()
1313
1414
const title = computed(() => appStore.getTitle)
15+
16+
// 添加当前年份计算属性
17+
const currentYear = computed(() => new Date().getFullYear())
1518
</script>
1619

1720
<template>
1821
<div
1922
:class="prefixCls"
2023
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"
2124
>
22-
<span class="text-14px">Copyright ©2022-{{ title }}</span>
25+
<span class="text-14px">Copyright ©{{ currentYear }} {{ title }}</span>
2326
</div>
2427
</template>

0 commit comments

Comments
 (0)