fix: 环境编辑请求头添加提示

This commit is contained in:
chenjianxing 2020-07-16 14:19:18 +08:00
parent 042b97b838
commit cb3fa9dfa1
1 changed files with 3 additions and 2 deletions

View File

@ -25,13 +25,12 @@
<ms-api-scenario-variables :items="environment.variables"/> <ms-api-scenario-variables :items="environment.variables"/>
<span>{{$t('api_test.request.headers')}}</span> <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"> <div class="environment-footer">
<ms-dialog-footer <ms-dialog-footer
@cancel="cancel" @cancel="cancel"
@confirm="save()"/> @confirm="save()"/>
<!-- <el-button type="primary" @click="save">{{this.$t('commons.save')}}</el-button>-->
</div> </div>
</el-form> </el-form>
@ -42,6 +41,7 @@
import MsApiScenarioVariables from "../ApiScenarioVariables"; import MsApiScenarioVariables from "../ApiScenarioVariables";
import MsApiKeyValue from "../ApiKeyValue"; import MsApiKeyValue from "../ApiKeyValue";
import MsDialogFooter from "../../../../common/components/MsDialogFooter"; import MsDialogFooter from "../../../../common/components/MsDialogFooter";
import {requestHeaders} from "../../../../../../common/js/constants";
export default { export default {
name: "EnvironmentEdit", name: "EnvironmentEdit",
@ -71,6 +71,7 @@
], ],
socket :[{required: true, validator: socketValidator, trigger: 'blur'}], socket :[{required: true, validator: socketValidator, trigger: 'blur'}],
}, },
headerSuggestions: requestHeaders
} }
}, },
methods: { methods: {