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

This commit is contained in:
非法操作 2025-01-24 18:42:14 +08:00 committed by GitHub
parent c966bf1474
commit ef1f429437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,9 @@ const DetailHeader = ({
return 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 if (fetchedReleases.length === 0) return
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version) const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
Toast.notify(toastProps) Toast.notify(toastProps)