From e3ddb391b9a6b047af37eb1633e114edb598e91b Mon Sep 17 00:00:00 2001 From: Ntkskwk Date: Tue, 3 Sep 2024 15:54:52 +0800 Subject: feat: update favicon path in index.html --- site/index.html | 2 +- site/src/assets/favicon.ico | Bin 0 -> 4286 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 site/src/assets/favicon.ico diff --git a/site/index.html b/site/index.html index 641c297..ca502e6 100644 --- a/site/index.html +++ b/site/index.html @@ -3,7 +3,7 @@ - + 水系官网 diff --git a/site/src/assets/favicon.ico b/site/src/assets/favicon.ico new file mode 100644 index 0000000..dd63670 Binary files /dev/null and b/site/src/assets/favicon.ico differ -- cgit v1.2.3-70-g09d2 From b336845dac0567bfce09dc0d4ffd6e27b1bc3d66 Mon Sep 17 00:00:00 2001 From: Ntkskwk Date: Tue, 3 Sep 2024 15:55:35 +0800 Subject: refactor: Optimize the cache of changelog --- site/src/views/index/Right.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/site/src/views/index/Right.vue b/site/src/views/index/Right.vue index ba8f294..f87d167 100644 --- a/site/src/views/index/Right.vue +++ b/site/src/views/index/Right.vue @@ -2,7 +2,7 @@ import Notepad from './Notepad/index.vue' import DocumentationIcon from '@/components/icons/IconDocumentation.vue' import { getChangeLog } from './Notepad/changelog' - +import { computed } from 'vue' export default { data() { @@ -47,13 +47,17 @@ export default { } }, beforeCreate() { - getChangeLog().then(res => { + changeLogMessage.value.then((res) => { this.changeLogMessage = res; this.change_page(this.mainPage); - }) + }); }, } +const changeLogMessage = computed(() => { + return getChangeLog(); +}) +