chore(lint): 升级检查依赖并统一格式化与提交规范
This commit is contained in:
@@ -7,7 +7,7 @@ import type { PageQuery, PageResult } from "@/api/common";
|
||||
* 分页查询只接收最近一次请求的结果;勾选与弹窗状态由页面持有。
|
||||
*/
|
||||
export function usePageTable<T, Q extends PageQuery = PageQuery>(
|
||||
options: UsePageTableOptions<T, Q>
|
||||
options: UsePageTableOptions<T, Q>,
|
||||
): UsePageTableReturn<T, Q> {
|
||||
const { request, onBeforeReset } = options;
|
||||
const initialParams = cloneDeep(options.initialParams);
|
||||
|
||||
@@ -230,7 +230,7 @@ export function provideRealtime(): RealtimeContext {
|
||||
[...(user.userInfo.perms ?? [])].sort().join(),
|
||||
].join("|"),
|
||||
resetConnection,
|
||||
{ flush: "sync" }
|
||||
{ flush: "sync" },
|
||||
);
|
||||
|
||||
const context: RealtimeContext = {
|
||||
|
||||
@@ -15,7 +15,7 @@ export function useTableSelection<T extends { id?: string | number }>() {
|
||||
*/
|
||||
function handleSelectionChange(selection: T[]): void {
|
||||
selectedIds.value = selection.flatMap((item) =>
|
||||
item.id === undefined || item.id === null ? [] : [item.id]
|
||||
item.id === undefined || item.id === null ? [] : [item.id],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user