mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 01:53:15 +08:00
fix: commit id as version id
This commit is contained in:
@@ -26,8 +26,10 @@ export const useUpdateStore = create<UpdateStore>()(
|
||||
}
|
||||
|
||||
try {
|
||||
const data = await (await fetch(FETCH_TAG_URL)).json();
|
||||
const remoteId = data[0].name as string;
|
||||
// const data = await (await fetch(FETCH_TAG_URL)).json();
|
||||
// const remoteId = data[0].name as string;
|
||||
const data = await (await fetch(FETCH_COMMIT_URL)).json();
|
||||
const remoteId = (data[0].sha as string).substring(0, 7);
|
||||
set(() => ({
|
||||
lastUpdate: Date.now(),
|
||||
remoteId,
|
||||
|
Reference in New Issue
Block a user