We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a99e93 commit a656091Copy full SHA for a656091
frontend/src/views/system/prompt/index.vue
@@ -201,9 +201,16 @@ const search = () => {
201
searchLoading.value = true
202
oldKeywords.value = keywords.value
203
promptApi
204
- .getList(pageInfo.currentPage, pageInfo.pageSize, currentType.value, {
205
- name: keywords.value,
206
- })
+ .getList(
+ pageInfo.currentPage,
+ pageInfo.pageSize,
207
+ currentType.value,
208
+ keywords.value
209
+ ? {
210
+ name: keywords.value,
211
+ }
212
+ : {}
213
+ )
214
.then((res: any) => {
215
toggleRowLoading.value = true
216
fieldList.value = res.data
0 commit comments