Skip to content

Commit 951ae18

Browse files
committed
fix bug
1 parent c064543 commit 951ae18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electron_app/src/components/History.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<div class="animatable_content_box ">
44

55
<b-form-input
6+
@input="currentPage=1"
67
onkeypress="return event.keyCode != 13;"
78
size="sm"
89
placeholder="Search by prompt text"
@@ -108,7 +109,6 @@ export default {
108109
let history = Object.values(this.app_state.app_data.history);
109110
const that = this;
110111
const list = this.app_state.show_history_in_oldest_first ? history : history.reverse();
111-
112112
if (that.searchText.trim() === '') {
113113
return list;
114114
}
@@ -117,7 +117,7 @@ export default {
117117
keys: ['prompt'],
118118
useExtendedSearch: true,
119119
});
120-
120+
121121
return fuse.search(that.searchText).map(r => r.item);
122122
123123
},

0 commit comments

Comments
 (0)