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[]; }