diff --git a/frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue b/frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue index c341f4782ada..eec1c5c4d3ba 100644 --- a/frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue +++ b/frontend/src/business/components/common/json-schema/schema/editor/mock/MockComplete.vue @@ -13,7 +13,6 @@ - @@ -74,9 +73,11 @@ methods: { funcSearch(queryString, cb) { let results = []; - if(!this.showMockVars){ - let funcs = MOCKJS_FUNC.concat(JMETER_FUNC); - results = queryString ? funcs.filter(this.funcFilter(queryString)) : funcs; + if(!this.disabled && this.needMock){ + if(!this.showMockVars){ + let funcs = MOCKJS_FUNC.concat(JMETER_FUNC); + results = queryString ? funcs.filter(this.funcFilter(queryString)) : funcs; + } } // 调用 callback 返回建议列表的数据 cb(results);