diff --git a/nezha-fronted/src/components/chart/chart/chartBubble.vue b/nezha-fronted/src/components/chart/chart/chartBubble.vue
index f28a708e1..cab5b4b5c 100644
--- a/nezha-fronted/src/components/chart/chart/chartBubble.vue
+++ b/nezha-fronted/src/components/chart/chart/chartBubble.vue
@@ -110,14 +110,9 @@ export default {
drawBubbleChart () {
this.$nextTick(() => {
d3.select(`#bubble-svg-${this.chartId}`).selectAll('g').remove()// 清空作图区域
- let width
- let height
- try {
- const chartWrap = document.getElementById(`chart-canvas-${this.chartId}`)
- width = chartWrap.clientWidth
- height = chartWrap.clientHeight
- } catch (error) {
- }
+ const svg = document.getElementById(`bubble-svg-${this.chartId}`)
+ const width = svg.getBoundingClientRect().width
+ const height = svg.getBoundingClientRect().height
// 定义布局方式
const pack = d3.pack()
.size([width, height])
diff --git a/nezha-fronted/src/components/common/rightBox/ipDetailsBox.vue b/nezha-fronted/src/components/common/rightBox/ipDetailsBox.vue
index 8a6f01611..5889725df 100644
--- a/nezha-fronted/src/components/common/rightBox/ipDetailsBox.vue
+++ b/nezha-fronted/src/components/common/rightBox/ipDetailsBox.vue
@@ -78,15 +78,15 @@ export default {
options: {
ipDetailsState: [
{
- label: 'Available',
+ label: this.$t('overall.ipam.available'),
value: 1
},
{
- label: 'Transient',
+ label: this.$t('overall.ipam.transient'),
value: 2
},
{
- label: 'Used',
+ label: this.$t('overall.ipam.used'),
value: 3
}
]
diff --git a/nezha-fronted/src/components/common/table/settings/ipamTable.vue b/nezha-fronted/src/components/common/table/settings/ipamTable.vue
index 0d922963f..4565343ae 100644
--- a/nezha-fronted/src/components/common/table/settings/ipamTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/ipamTable.vue
@@ -70,7 +70,7 @@
{{$t('overall.edit')}}
{{$t('overall.duplicate')}}
{{$t('overall.delete')}}
- {{$t('overall.syncChart')}}
+