fix(接口测试): 修复引用数据源无法连续搜索的缺陷

--bug=1037731 --user=王孝刚 【接口测试】定义-定义-调试-后置-sql操作-引用数据源-搜索为纯前端搜索无法连续搜索
https://www.tapd.cn/55049933/s/1487104
This commit is contained in:
wxg0103 2024-04-03 11:17:43 +08:00 committed by 刘瑞斌
parent 1924158c09
commit 1d8793f09b
1 changed files with 1 additions and 2 deletions

View File

@ -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[];
} }
} }