diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 9c18d52418..85d87e6867 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -102,6 +102,7 @@ module.exports = { '^localforage$', 'vue-draggable-plus', 'jsonpath-plus', + 'lossless-json', ], // node依赖 ['.*/assets/.*', '^@/assets$'], // 项目静态资源 ['^@/components/pure/.*', '^@/components/business/.*', '.*\\.vue$'], // 组件 diff --git a/frontend/package.json b/frontend/package.json index 39b9284aeb..95cfe9e989 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -63,6 +63,7 @@ "jsonpath-plus": "^8.0.0", "localforage": "^1.10.0", "lodash-es": "^4.17.21", + "lossless-json": "^4.0.1", "mitt": "^3.0.1", "monaco-editor": "^0.39.0", "nprogress": "^0.2.0", diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index d66ff8612e..bcf6b815fa 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -743,7 +743,7 @@ .arco-switch-type-circle.arco-switch-checked:not(:disabled) { background-color: rgb(var(--primary-5)) !important; } -.arco-switch-disabled { +.arco-switch-type-circle.arco-switch-disabled { background-color: rgb(var(--primary-3)) !important; } .arco-switch-type-line.arco-switch-small { diff --git a/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue b/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue index 3d24a3c746..4104735b96 100644 --- a/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue @@ -438,7 +438,7 @@ variableType: RequestExtractEnvType.TEMPORARY, extractScope: RequestExtractScope.BODY, expression: '', - extractType: RequestExtractExpressionEnum.REGEX, + extractType: RequestExtractExpressionEnum.JSON_PATH, expressionMatchingRule: RequestExtractExpressionRuleType.EXPRESSION, resultMatchingRule: RequestExtractResultMatchingRule.RANDOM, resultMatchingRuleNum: 1, diff --git a/frontend/src/components/business/ms-case-associate/caseLevel.vue b/frontend/src/components/business/ms-case-associate/caseLevel.vue index 4fd78a0b04..8000fa03ac 100644 --- a/frontend/src/components/business/ms-case-associate/caseLevel.vue +++ b/frontend/src/components/business/ms-case-associate/caseLevel.vue @@ -1,5 +1,5 @@