feat: 添加导航链接列表更新日期显示
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
window['NAV_LINK_DATE'] = '2024-09-01';
|
||||||
|
|
||||||
window['NAV_LINK_LIST'] = [
|
window['NAV_LINK_LIST'] = [
|
||||||
{
|
{
|
||||||
title: '百科 / 教程 / 科普 / 资料',
|
title: '百科 / 教程 / 科普 / 资料',
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
<n-p>一个多功能的网址导航,绿色无广告。</n-p>
|
<n-p>一个多功能的网址导航,绿色无广告。</n-p>
|
||||||
<n-p>当前版本:V{{ version }}</n-p>
|
<n-p>当前版本:V{{ version }}</n-p>
|
||||||
|
<n-p>导航链接列表更新日期:{{ NAV_LINK_DATE }}</n-p>
|
||||||
|
|
||||||
<n-h4>开发人员</n-h4>
|
<n-h4>开发人员</n-h4>
|
||||||
|
|
||||||
@@ -38,6 +39,9 @@ import { NA, NH4, NLi, NP, NUl } from 'naive-ui';
|
|||||||
import { version } from '@package-json';
|
import { version } from '@package-json';
|
||||||
import { ABOUT_MODULE_TITLE } from '@/config/modules';
|
import { ABOUT_MODULE_TITLE } from '@/config/modules';
|
||||||
|
|
||||||
|
/** 导航链接列表更新日期 */
|
||||||
|
const NAV_LINK_DATE = window['NAV_LINK_DATE'];
|
||||||
|
|
||||||
/** Gitee 地址 */
|
/** Gitee 地址 */
|
||||||
const URL_GITEE = 'https://gitee.com/frost-craft/frost-navigation';
|
const URL_GITEE = 'https://gitee.com/frost-craft/frost-navigation';
|
||||||
|
|
||||||
|
5
types/web.d.ts
vendored
5
types/web.d.ts
vendored
@@ -36,7 +36,10 @@ declare global {
|
|||||||
// window
|
// window
|
||||||
interface Window {
|
interface Window {
|
||||||
|
|
||||||
/** 导航链接列表 */
|
/** 导航链接列表更新日期 */
|
||||||
|
NAV_LINK_DATE: string;
|
||||||
|
|
||||||
|
/** 导航链接列表数据 */
|
||||||
NAV_LINK_LIST: NavLinkItem[];
|
NAV_LINK_LIST: NavLinkItem[];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user