fix(接口测试): 修复引用数据源无法连续搜索的缺陷
--bug=1037731 --user=王孝刚 【接口测试】定义-定义-调试-后置-sql操作-引用数据源-搜索为纯前端搜索无法连续搜索 https://www.tapd.cn/55049933/s/1487104
This commit is contained in:
parent
1924158c09
commit
1d8793f09b
|
@ -130,10 +130,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function searchDataSource() {
|
function searchDataSource() {
|
||||||
|
propsRes.value.data = cloneDeep(currentEnvConfig?.value.dataSources) as any[];
|
||||||
if (keyword.value.trim() !== '') {
|
if (keyword.value.trim() !== '') {
|
||||||
propsRes.value.data = propsRes.value.data.filter((e) => e.dataSource.includes(keyword.value));
|
propsRes.value.data = propsRes.value.data.filter((e) => e.dataSource.includes(keyword.value));
|
||||||
} else {
|
|
||||||
propsRes.value.data = cloneDeep(currentEnvConfig?.value.dataSources) as any[];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue