fix package info page dependencies link mistake

This commit is contained in:
sinsong 2023-07-05 17:25:48 +08:00
parent 4bfe16dafc
commit 0f7d700002

View file

@ -35,9 +35,8 @@ requestPackageInfo(route.params.packageName)
requestPackageList()
.then((list) => {
list.forEach((bioarchPackageName) => {
function mapPackageDistribution(pkg) {
if (bioarchPackageName === pkg) {
if (list.find(dep => dep === pkg)) {
return { name: pkg, dist: 'bioarch' }
}
else {
@ -49,7 +48,6 @@ requestPackageInfo(route.params.packageName)
makedepends.value = o_makedepends.map(mapPackageDistribution)
})
})
})
</script>
<template>