From b76dc08395cf47b8bf749f138dd89f991d02276e Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sat, 31 Aug 2024 21:26:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsconfig.app.json | 1 + types/web.d.ts | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/jsconfig.app.json b/jsconfig.app.json index 2cfd0ba..f3cff7d 100644 --- a/jsconfig.app.json +++ b/jsconfig.app.json @@ -12,6 +12,7 @@ "exclude": [], "include": [ "package.json", + "public/nav-links.js", "src/**/*.js", "src/**/*.vue", "types/env.d.ts", diff --git a/types/web.d.ts b/types/web.d.ts index ca1149e..599eb87 100644 --- a/types/web.d.ts +++ b/types/web.d.ts @@ -9,8 +9,32 @@ import type { declare global { + /** 导航链接项 */ + interface NavLinkItem { + /** 链接分类标题 / 链接项标题 */ + title: string; + /** 子链接列表 */ + children?: NavLinkItem[]; + /** 链接项更新日期 */ + date?: string, + /** 链接项简介 */ + desc?: string; + /** 链接分类图标 class */ + icon?: string; + /** 链接是否已失效 */ + isInvalid?: boolean; + /** 是否只显示详情,不跳转 */ + showOnly?: boolean; + /** 链接项 URL */ + url?: string; + }; + // window interface Window { + + /** 导航链接列表 */ + NAV_LINK_LIST: NavLinkItem[]; + } // Vue