Skip to content

Commit 3da8fb1

Browse files
committed
update log window,astro update,few things
1 parent 9d78d64 commit 3da8fb1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/UpdateModal.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2+
import type { HTMLAttributes } from 'astro/types';
3+
24
interface Update {
35
version: string;
46
date: string;
57
title: string;
6-
buttonText: string;
7-
buttonUrl: string;
88
updates: string[];
99
}
1010
11-
interface Props {
11+
interface Props extends HTMLAttributes<'div'> {
1212
updates: Update[];
1313
}
1414

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import IconCursor from "../icons/cursor.astro";
1010
import IconAt from "../icons/at.astro";
1111
import IconArrow from "../icons/arrow.astro";
1212
13-
// 获取最新的更新信息
14-
const latestUpdate = updateHistory[0];
13+
// 删除未使用的变量声明
14+
// const latestUpdate = updateHistory[0];
1515
1616
---
1717

0 commit comments

Comments
 (0)