File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ interface ImageLink {
10
10
export const imageLinks = [
11
11
{
12
12
device : "Lichee Pi 4A" ,
13
- version : "20250323 " ,
14
- downloadLink : "https://mirror.iscas.ac.cn/revyos/extra/images/lpi4a/20250323 /" ,
13
+ version : "20250420 " ,
14
+ downloadLink : "https://mirror.iscas.ac.cn/revyos/extra/images/lpi4a/20250420 /" ,
15
15
sdCardSupport : true ,
16
16
} ,
17
17
{
18
18
device : "Milk-V Meles" ,
19
- version : "20250323 " ,
20
- downloadLink : "https://mirror.iscas.ac.cn/revyos/extra/images/meles/20250323 /" ,
19
+ version : "20250420 " ,
20
+ downloadLink : "https://mirror.iscas.ac.cn/revyos/extra/images/meles/20250420 /" ,
21
21
sdCardSupport : true ,
22
22
} ,
23
23
{
@@ -55,13 +55,13 @@ export const imageLinks = [
55
55
56
56
/**
57
57
* 根据设备名称查找对应的下载链接,并渲染为 `<a>` 标签。
58
- *
58
+ *
59
59
* @param device 设备名称,仅允许 `DeviceName` 类型的值。
60
60
* @returns 如果找到匹配的设备,则返回对应版本的下载链接;否则显示 "$device 暂无镜像"。
61
61
*/
62
62
export const DownloadLink : React . FC < { device : string } > = ( { device } ) => {
63
63
const link = imageLinks . find ( ( item ) => item . device === device ) ;
64
-
64
+
65
65
if ( ! link ) return < span > ${ device } 暂无镜像</ span > ;
66
66
67
67
return < a href = { link . downloadLink } > { link . version } </ a > ;
You can’t perform that action at this time.
0 commit comments