fix: 修复jmeter内置函数的提示

This commit is contained in:
Captain.B 2020-08-20 18:58:20 +08:00
parent 1038f50c3f
commit 246b63d432
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
<script>
import {KeyValue, Scenario} from "../model/ScenarioModel";
import {MOCKJS_FUNC} from "@/common/js/constants";
import {JMETER_FUNC, MOCKJS_FUNC} from "@/common/js/constants";
import MsApiVariableAdvance from "@/business/components/api/test/components/ApiVariableAdvance";
export default {
@ -112,7 +112,7 @@ export default {
};
},
funcSearch(queryString, cb) {
let funcs = MOCKJS_FUNC;
let funcs = MOCKJS_FUNC.concat(JMETER_FUNC);
let results = queryString ? funcs.filter(this.funcFilter(queryString)) : funcs;
// callback
cb(results);