feat(web): 表格工具行统一刷新钮

纯图标 + tooltip,筛选下一行右对齐;覆盖管理端与成员端列表;清理 overview 未用 ref。
This commit is contained in:
2026-10-09 23:42:24 +08:00
parent 4a7a3e76ee
commit 4be0853ade
10 changed files with 89 additions and 2 deletions
+6
View File
@@ -9,6 +9,7 @@ import { useRoute, useRouter } from "vue-router";
import type { KeyItem } from "@new-api-key-usage/core";
import type { ApiError } from "@/api/http.ts";
import PageHeader from "@/components/common/page-header.vue";
import TableRefresh from "@/components/common/table-refresh.vue";
import RegisterKeyModal from "@/components/admin/register-key-modal.vue";
import { useEngine, useKeys, useMembers, usePatchKey } from "@/queries/admin.ts";
import { formatInt } from "@/utils/format.ts";
@@ -230,6 +231,11 @@ function onRowClass(record: KeyItem) {
</a-space>
</div>
<TableRefresh
:loading="keysQuery.isFetching.value"
@refresh="() => keysQuery.refetch()"
/>
<a-empty
v-if="!keysQuery.isPending.value && rows.length === 0"
:description="