mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Refresh state on pack install
This commit is contained in:
parent
de52d9152d
commit
2e2a90c568
@ -44,7 +44,9 @@
|
||||
<RegistryItem
|
||||
v-for="item of filteredList"
|
||||
:key="item.name"
|
||||
ref="items"
|
||||
:item="item"
|
||||
@refresh="checkInstalled"
|
||||
/>
|
||||
<!-- <RegistryItem
|
||||
v-for="item of packList"
|
||||
@ -161,6 +163,9 @@ export default Vue.extend({
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
checkInstalled() {
|
||||
this.$refs.items?.forEach((item: any) => item.checkInstalled())
|
||||
},
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
@ -131,6 +131,9 @@ export default Vue.extend({
|
||||
urls.map(async url => installFeature(url)),
|
||||
)
|
||||
this.checkInstalled()
|
||||
if (this.item.type === 'pack') {
|
||||
this.$emit('refresh')
|
||||
}
|
||||
} catch (error) {
|
||||
logError(error)
|
||||
} finally {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user