mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 07:40:05 +08:00
fix(updater): gate cached updates on semver and confirm offers before installing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { fetchCacheData, setCacheData, useQuery } from '@/services/query-client'
|
||||
import { checkUpdateSafe } from '@/services/update'
|
||||
import { checkForUpdate } from '@/services/update'
|
||||
|
||||
import { useVerge } from './use-verge'
|
||||
|
||||
@@ -26,7 +26,7 @@ export const useUpdate = (enabled: boolean = true) => {
|
||||
const shouldCheck = enabled && auto_check_update !== false
|
||||
|
||||
const fetchUpdate = async () => {
|
||||
const result = await checkUpdateSafe()
|
||||
const result = await checkForUpdate()
|
||||
updateLastCheckTime()
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user