mirror of
https://github.com/putyy/res-downloader.git
synced 2026-01-12 06:04:55 +08:00
fix: version comparison
This commit is contained in:
@@ -108,7 +108,7 @@ onMounted(()=>{
|
|||||||
is.value = true
|
is.value = true
|
||||||
|
|
||||||
request({
|
request({
|
||||||
url: 'https://res.putyy.com/version.json',
|
url: 'https://res.putyy.com/version.json?v=' + Date.now(),
|
||||||
method: 'get',
|
method: 'get',
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
showUpdate.value = compareVersions(res.version, store.appInfo.Version) === 1
|
showUpdate.value = compareVersions(res.version, store.appInfo.Version) === 1
|
||||||
|
|||||||
Reference in New Issue
Block a user