diff --git a/sop-admin/sop-admin-vue/src/views/service/limit/index2.vue b/sop-admin/sop-admin-vue/src/views/service/limit/index2.vue
index 6d3efa36..96ef8bbb 100644
--- a/sop-admin/sop-admin-vue/src/views/service/limit/index2.vue
+++ b/sop-admin/sop-admin-vue/src/views/service/limit/index2.vue
@@ -64,7 +64,7 @@
限流策略
- 漏桶策略
+ 窗口策略
令牌桶策略
@@ -171,7 +171,7 @@
- 漏桶策略
+ 窗口策略
令牌桶策略
@@ -192,13 +192,13 @@
-
+
-
+
-
+
@@ -274,7 +274,7 @@ export default {
{ required: true, message: '不能为空', trigger: 'blur' },
{ min: 1, max: 500, message: '长度在 1 到 500 个字符', trigger: 'blur' }
],
- // leaky
+ // window
execCountPerSecond: [
{ required: true, message: '不能为空', trigger: 'blur' }
],
@@ -452,9 +452,9 @@ export default {
}
},
onLimitTypeTipClick: function() {
- const leakyRemark = '漏桶策略:每秒处理固定数量的请求,超出请求返回错误信息。'
+ const windowRemark = '窗口策略:每秒处理固定数量的请求,超出请求数量返回错误信息。'
const tokenRemark = '令牌桶策略:每秒放置固定数量的令牌数,每个请求进来后先去拿令牌,拿到了令牌才能继续,拿不到则等候令牌重新生成了再拿。'
- const content = leakyRemark + '
' + tokenRemark
+ const content = windowRemark + '
' + tokenRemark
this.$alert(content, '限流策略', {
dangerouslyUseHTMLString: true
})
@@ -472,7 +472,7 @@ export default {
return value === val
})
},
- isLeakyType: function() {
+ isWindowType: function() {
return this.limitDialogFormData.limitType === 1
},
isTokenType: function() {