Skip to content

Commit 81690ef

Browse files
committed
fix desktop version fetch
1 parent 4fb05ea commit 81690ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/.vuepress/components/Desktop.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ if (platform.includes("win")) {
1616
console.log(plat.value);
1717
1818
const res = await fetch(
19-
`${api()}/proxy/https://github.com/alist-org/desktop-release/releases/latest/download/alist-desktop-proxy.json`
19+
`${api()}/proxy/https://github.com/alist-org/desktop-release/releases/latest/download/proxy.json`
2020
);
2121
const data = await res.json();
22-
const version = (data.name as string).slice(1);
22+
const version = data.version as string;
2323
2424
let text = {
2525
down: "Download",

0 commit comments

Comments
 (0)