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