fix: 环境编辑请求头添加提示
This commit is contained in:
parent
042b97b838
commit
cb3fa9dfa1
|
@ -25,13 +25,12 @@
|
|||
<ms-api-scenario-variables :items="environment.variables"/>
|
||||
|
||||
<span>{{$t('api_test.request.headers')}}</span>
|
||||
<ms-api-key-value :items="environment.headers"/>
|
||||
<ms-api-key-value :items="environment.headers" :suggestions="headerSuggestions"/>
|
||||
|
||||
<div class="environment-footer">
|
||||
<ms-dialog-footer
|
||||
@cancel="cancel"
|
||||
@confirm="save()"/>
|
||||
<!-- <el-button type="primary" @click="save">{{this.$t('commons.save')}}</el-button>-->
|
||||
</div>
|
||||
|
||||
</el-form>
|
||||
|
@ -42,6 +41,7 @@
|
|||
import MsApiScenarioVariables from "../ApiScenarioVariables";
|
||||
import MsApiKeyValue from "../ApiKeyValue";
|
||||
import MsDialogFooter from "../../../../common/components/MsDialogFooter";
|
||||
import {requestHeaders} from "../../../../../../common/js/constants";
|
||||
|
||||
export default {
|
||||
name: "EnvironmentEdit",
|
||||
|
@ -71,6 +71,7 @@
|
|||
],
|
||||
socket :[{required: true, validator: socketValidator, trigger: 'blur'}],
|
||||
},
|
||||
headerSuggestions: requestHeaders
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue