fix: fix lint
diff --git a/ui-vue3/src/api/mock/mockRoutingRule.ts b/ui-vue3/src/api/mock/mockRoutingRule.ts
index 0a14361..8b95dd8 100644
--- a/ui-vue3/src/api/mock/mockRoutingRule.ts
+++ b/ui-vue3/src/api/mock/mockRoutingRule.ts
@@ -19,8 +19,8 @@
import devTool from '@/utils/DevToolUtil'
Mock.mock('/mock/routingRule/search', 'get', () => {
- let total = Mock.mock('@integer(8, 1000)');
- let list = [];
+ const total = Mock.mock('@integer(8, 1000)');
+ const list = [];
for (let i = 0; i < total; i++) {
list.push({
ruleName: 'app_' + Mock.mock('@string(2,10)'),
diff --git a/ui-vue3/src/base/i18n/zh.ts b/ui-vue3/src/base/i18n/zh.ts
index db63bae..be83c89 100644
--- a/ui-vue3/src/base/i18n/zh.ts
+++ b/ui-vue3/src/base/i18n/zh.ts
@@ -289,11 +289,11 @@
editMockRule: '修改规则',
deleteRuleTitle: '确定要删除此服务Mock规则吗?',
- ruleName:'规则名',
- ruleGranularity:'规则粒度',
- effectiveTime:'生效时间',
- enable:'是否启用',
- protection:'容错保护',
+ ruleName: '规则名',
+ ruleGranularity: '规则粒度',
+ effectiveTime: '生效时间',
+ enable: '是否启用',
+ protection: '容错保护',
trafficTimeout: '超时时间',
trafficRetry: '调用重试',
trafficRegion: '同区域优先',
diff --git a/ui-vue3/src/router/defaultRoutes.ts b/ui-vue3/src/router/defaultRoutes.ts
index 9d804db..70884b9 100644
--- a/ui-vue3/src/router/defaultRoutes.ts
+++ b/ui-vue3/src/router/defaultRoutes.ts
@@ -277,7 +277,7 @@
{
path: '/routingRule',
name: 'routingRule',
- component: () => import('../views/traffic/routingRule/index.vue'),
+ component: () => import('../views/traffic/routingRule/index.vue')
},
{
path: '/tagRule',
@@ -367,7 +367,7 @@
parent: RouteRecordType | undefined
) {
if (!routes) return
- for (let route of routes) {
+ for (const route of routes) {
if (parent) {
route.path = handlePath(parent?.path, route.path)
}