diff --git a/frontend/src/components/business/ms-assertion/comp/ResponseHeaderTab.vue b/frontend/src/components/business/ms-assertion/comp/ResponseHeaderTab.vue index 770cf0e551..a6fadcf5ce 100644 --- a/frontend/src/components/business/ms-assertion/comp/ResponseHeaderTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/ResponseHeaderTab.vue @@ -17,6 +17,8 @@ import { statusCodeOptions } from '@/components/pure/ms-advance-filter/index'; import paramsTable, { type ParamTableColumn } from '@/views/api-test/components/paramTable.vue'; + import { responseHeaderOption } from '@/config/apiTest'; + import type { ExecuteAssertionItem } from '@/models/apiTest/common'; interface Param { @@ -41,21 +43,6 @@ enable: true, }; - const responseHeaderOption = [ - { label: 'Accept', value: 'accept' }, - { label: 'Accept-Encoding', value: 'acceptEncoding' }, - { label: 'Accept-Language', value: 'acceptLanguage' }, - { label: 'Cache-Control', value: 'cacheControl' }, - { label: 'Content-Type', value: 'contentType' }, - { label: 'Content-Length', value: 'contentLength' }, - { label: 'User-Agent', value: 'userAgent' }, - { label: 'Referer', value: 'referer' }, - { label: 'Cookie', value: 'cookie' }, - { label: 'Authorization', value: 'authorization' }, - { label: 'If-None-Match', value: 'ifNoneMatch' }, - { label: 'If-Modified-Since', value: 'ifModifiedSince' }, - ]; - const columns: ParamTableColumn[] = [ { title: 'ms.assertion.responseHeader', // 响应头 diff --git a/frontend/src/components/business/ms-assertion/comp/VariableTab.vue b/frontend/src/components/business/ms-assertion/comp/VariableTab.vue index c3edb5f104..dd75a40bfc 100644 --- a/frontend/src/components/business/ms-assertion/comp/VariableTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/VariableTab.vue @@ -15,6 +15,8 @@ import { statusCodeOptions } from '@/components/pure/ms-advance-filter/index'; import paramsTable, { type ParamTableColumn } from '@/views/api-test/components/paramTable.vue'; + import { responseHeaderOption } from '@/config/apiTest'; + interface Param { [key: string]: any; variableAssertionItems: any[]; @@ -37,21 +39,6 @@ enable: true, }; - const responseHeaderOption = [ - { label: 'Accept', value: 'accept' }, - { label: 'Accept-Encoding', value: 'acceptEncoding' }, - { label: 'Accept-Language', value: 'acceptLanguage' }, - { label: 'Cache-Control', value: 'cacheControl' }, - { label: 'Content-Type', value: 'contentType' }, - { label: 'Content-Length', value: 'contentLength' }, - { label: 'User-Agent', value: 'userAgent' }, - { label: 'Referer', value: 'referer' }, - { label: 'Cookie', value: 'cookie' }, - { label: 'Authorization', value: 'authorization' }, - { label: 'If-None-Match', value: 'ifNoneMatch' }, - { label: 'If-Modified-Since', value: 'ifModifiedSince' }, - ]; - const columns: ParamTableColumn[] = [ { title: 'ms.assertion.variableName', // 变量名 diff --git a/frontend/src/components/business/ms-breadcrumb/index.vue b/frontend/src/components/business/ms-breadcrumb/index.vue index 16de27bf95..5ae4d1ff80 100644 --- a/frontend/src/components/business/ms-breadcrumb/index.vue +++ b/frontend/src/components/business/ms-breadcrumb/index.vue @@ -1,5 +1,5 @@ + + + + + + + + + + + + + + + + + + + +