fix: 修正npm-dashboard的tab的活动条的偏差

This commit is contained in:
chenjinsong
2022-07-18 16:09:13 +08:00
parent 930647f416
commit d5b16afdf7
4 changed files with 35 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
></network-overview-tabs>
<npm-tabs
v-else-if="chart.type === typeMapping.npm.npmTabs"
@tabChange="index => $emit('tabChange', index)"
@tabChange="npmTabChange"
></npm-tabs>
<npm-network-quantity
v-else-if="chart.type === typeMapping.npm.npmNetworkQuantity"
@@ -59,6 +59,11 @@ export default {
loading: false,
isNoData: false
}
},
methods: {
npmTabChange (index) {
this.$emit('npmTabChange', index)
}
}
}
</script>