Skip to content

Commit a656091

Browse files
committed
fix: Interface search optimization
1 parent 8a99e93 commit a656091

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

frontend/src/views/system/prompt/index.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,16 @@ const search = () => {
201201
searchLoading.value = true
202202
oldKeywords.value = keywords.value
203203
promptApi
204-
.getList(pageInfo.currentPage, pageInfo.pageSize, currentType.value, {
205-
name: keywords.value,
206-
})
204+
.getList(
205+
pageInfo.currentPage,
206+
pageInfo.pageSize,
207+
currentType.value,
208+
keywords.value
209+
? {
210+
name: keywords.value,
211+
}
212+
: {}
213+
)
207214
.then((res: any) => {
208215
toggleRowLoading.value = true
209216
fieldList.value = res.data

0 commit comments

Comments
 (0)