fix(1.0): update github plugin 404 (#13014)

pull/13050/head
非法操作 1 year ago committed by GitHub
parent c966bf1474
commit ef1f429437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -100,7 +100,9 @@ const DetailHeader = ({
return
}
const fetchedReleases = await fetchReleases(author, name)
const owner = meta!.repo.split('/')[0] || author
const repo = meta!.repo.split('/')[1] || name
const fetchedReleases = await fetchReleases(owner, repo)
if (fetchedReleases.length === 0) return
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
Toast.notify(toastProps)

Loading…
Cancel
Save