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.
2 parents b9620ad + cddd0e2 commit 1c627baCopy full SHA for 1c627ba
web/src/components/keys/KeyTable.vue
@@ -92,10 +92,18 @@ watch(
92
{ immediate: true }
93
);
94
95
-watch([currentPage, pageSize, statusFilter], async () => {
+watch([currentPage, pageSize], async () => {
96
await loadKeys();
97
});
98
99
+watch(statusFilter, async () => {
100
+ if (currentPage.value !== 1) {
101
+ currentPage.value = 1;
102
+ } else {
103
+ await loadKeys();
104
+ }
105
+});
106
+
107
// 监听任务完成事件,自动刷新密钥列表
108
watch(
109
() => appState.groupDataRefreshTrigger,
@@ -119,8 +127,11 @@ watch(
119
127
120
128
// 处理搜索输入的防抖
121
129
function handleSearchInput() {
122
- currentPage.value = 1; // 搜索时重置到第一页
123
- loadKeys();
130
131
132
133
+ loadKeys();
134
124
135
}
125
136
126
137
// 处理更多操作菜单
0 commit comments