From 27de19e75b7e2787a6cd0a0f124d7c350b3a6186 Mon Sep 17 00:00:00 2001 From: tanghc Date: Thu, 23 May 2019 09:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/service/limit/index2.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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() {