feat(web): 表格工具行统一刷新钮
纯图标 + tooltip,筛选下一行右对齐;覆盖管理端与成员端列表;清理 overview 未用 ref。
This commit is contained in:
@@ -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="
|
||||
|
||||
Reference in New Issue
Block a user