i18n for search type
diff --git a/dubbo-admin-frontend/src/components/ServiceSearch.vue b/dubbo-admin-frontend/src/components/ServiceSearch.vue
index bf5b69f..088068e 100644
--- a/dubbo-admin-frontend/src/components/ServiceSearch.vue
+++ b/dubbo-admin-frontend/src/components/ServiceSearch.vue
@@ -159,7 +159,7 @@
}),
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
},
hint () {
if (this.selected === 0) {
diff --git a/dubbo-admin-frontend/src/components/governance/AccessControl.vue b/dubbo-admin-frontend/src/components/governance/AccessControl.vue
index 7778764..2e2a850 100644
--- a/dubbo-admin-frontend/src/components/governance/AccessControl.vue
+++ b/dubbo-admin-frontend/src/components/governance/AccessControl.vue
@@ -462,7 +462,7 @@
},
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
}
},
watch: {
diff --git a/dubbo-admin-frontend/src/components/governance/LoadBalance.vue b/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
index 355c76d..ef157fa 100644
--- a/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
+++ b/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
@@ -442,7 +442,7 @@
},
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
}
},
watch: {
diff --git a/dubbo-admin-frontend/src/components/governance/Overrides.vue b/dubbo-admin-frontend/src/components/governance/Overrides.vue
index 4b5a782..d23ee56 100644
--- a/dubbo-admin-frontend/src/components/governance/Overrides.vue
+++ b/dubbo-admin-frontend/src/components/governance/Overrides.vue
@@ -429,7 +429,7 @@
},
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
}
},
watch: {
diff --git a/dubbo-admin-frontend/src/components/governance/RoutingRule.vue b/dubbo-admin-frontend/src/components/governance/RoutingRule.vue
index b057545..3255976 100644
--- a/dubbo-admin-frontend/src/components/governance/RoutingRule.vue
+++ b/dubbo-admin-frontend/src/components/governance/RoutingRule.vue
@@ -437,7 +437,7 @@
},
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
}
},
watch: {
diff --git a/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue b/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
index 317be0c..0902094 100644
--- a/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
+++ b/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
@@ -418,7 +418,7 @@
},
computed: {
queryBy () {
- return 'by ' + this.$t(this.items[this.selected].title)
+ return this.$t('by') + this.$t(this.items[this.selected].title)
}
},
watch: {
diff --git a/dubbo-admin-frontend/src/lang/en.js b/dubbo-admin-frontend/src/lang/en.js
index 90de8de..7afdfde 100644
--- a/dubbo-admin-frontend/src/lang/en.js
+++ b/dubbo-admin-frontend/src/lang/en.js
@@ -99,5 +99,6 @@
metrics: 'Metrics will release later',
serviceTest: 'Service Test will release later',
serviceMock: 'Service Mock will release later'
- }
+ },
+ by: 'by '
}
diff --git a/dubbo-admin-frontend/src/lang/zh.js b/dubbo-admin-frontend/src/lang/zh.js
index 5ede56f..9df4336 100644
--- a/dubbo-admin-frontend/src/lang/zh.js
+++ b/dubbo-admin-frontend/src/lang/zh.js
@@ -99,5 +99,6 @@
metrics: 'Metrics会在后续版本中发布,敬请期待',
serviceTest: '服务测试会在后续版本中发布,敬请期待',
serviceMock: '服务Mock会在后续版本中发布,敬请期待'
- }
+ },
+ by: '按'
}