fix(接口测试): mock期望设置中,请求体中的json-schema值输入框不提示mockJs的数据
mock期望设置中,请求体中的json-schema值输入框不提示mockJs的数据 Closes #23171
This commit is contained in:
parent
cdb2c8b40e
commit
7d4082bc2e
|
@ -58,9 +58,9 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
"schema.type": {
|
'schema.type': {
|
||||||
handler() {
|
handler() {
|
||||||
this.schema.mock = this.mock;
|
this.schema.mock = this.mock;
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
@ -86,9 +86,11 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
funcSearch(queryString, cb) {
|
funcSearch(queryString, cb) {
|
||||||
let results = [];
|
let results = [];
|
||||||
if (!this.showMockVars) {
|
if (!this.disabled && this.needMock) {
|
||||||
let funcs = MOCKJS_FUNC.concat(JMETER_FUNC);
|
if (!this.showMockVars) {
|
||||||
results = queryString ? funcs.filter(this.funcFilter(queryString)) : funcs;
|
let funcs = MOCKJS_FUNC.concat(JMETER_FUNC);
|
||||||
|
results = queryString ? funcs.filter(this.funcFilter(queryString)) : funcs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 调用 callback 返回建议列表的数据
|
// 调用 callback 返回建议列表的数据
|
||||||
cb(results);
|
cb(results);
|
||||||
|
|
Loading…
Reference in New Issue