From 7c84abdd6410b46bee6865baa61a8cdeeeae9e79 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sun, 1 Sep 2024 17:39:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=88=97=E8=A1=A8=E6=9B=B4=E6=96=B0=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/nav-links.js | 2 ++ src/views/AboutView/AboutView.vue | 4 ++++ types/web.d.ts | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/public/nav-links.js b/public/nav-links.js index b9c19a1..c2f3313 100644 --- a/public/nav-links.js +++ b/public/nav-links.js @@ -1,3 +1,5 @@ +window['NAV_LINK_DATE'] = '2024-09-01'; + window['NAV_LINK_LIST'] = [ { title: '百科 / 教程 / 科普 / 资料', diff --git a/src/views/AboutView/AboutView.vue b/src/views/AboutView/AboutView.vue index 0348ae7..7c36603 100644 --- a/src/views/AboutView/AboutView.vue +++ b/src/views/AboutView/AboutView.vue @@ -9,6 +9,7 @@ 一个多功能的网址导航,绿色无广告。 当前版本:V{{ version }} + 导航链接列表更新日期:{{ NAV_LINK_DATE }} 开发人员 @@ -38,6 +39,9 @@ import { NA, NH4, NLi, NP, NUl } from 'naive-ui'; import { version } from '@package-json'; import { ABOUT_MODULE_TITLE } from '@/config/modules'; +/** 导航链接列表更新日期 */ +const NAV_LINK_DATE = window['NAV_LINK_DATE']; + /** Gitee 地址 */ const URL_GITEE = 'https://gitee.com/frost-craft/frost-navigation'; diff --git a/types/web.d.ts b/types/web.d.ts index 6022375..6c66d6b 100644 --- a/types/web.d.ts +++ b/types/web.d.ts @@ -36,7 +36,10 @@ declare global { // window interface Window { - /** 导航链接列表 */ + /** 导航链接列表更新日期 */ + NAV_LINK_DATE: string; + + /** 导航链接列表数据 */ NAV_LINK_LIST: NavLinkItem[]; }