Skip to content

Commit

Permalink
fix: Sometime the version is not up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
doabackflip authored and ci010 committed Oct 9, 2023
1 parent 5703081 commit 4f26b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmcl-keystone-ui/src/composables/instanceVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export function useInstanceVersion(instance: Ref<Instance>, local: Ref<LocalVers
return resolvedVersion
}, { revalidateOnFocus: false, errorRetryCount: 0, shouldRetryOnError: false })

watch(versionHeader, () => {
watch([versionHeader, local], () => {
mutate()
})
}, { deep: true })

return {
...useInstanceVersionBase(instance),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function useInstanceVersionDiagnose(runtime: Ref<RuntimeVersions>, resolv
if (version) {
await installDependencies(version)
}
await _update(resolvedVersion.value)
}
issueItems.value = [reactive({
title: computed(() => t('diagnosis.missingVersion.name', { version: getExpectVersion(runtime) })),
Expand Down

0 comments on commit 4f26b97

Please sign in to comment.