From 9f74bad4415c587f6ba4f562a41802948baf27d8 Mon Sep 17 00:00:00 2001 From: Evil Date: Wed, 20 Dec 2023 15:56:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=8B=E8=AF=95husky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .lintstagedrc.json | 4 ++++ src/utils/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .lintstagedrc.json diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 00000000..5356ec76 --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,4 @@ +{ + "*.{js,jsx,ts,tsx}": ["prettier --write .", "eslint --fix"], + "*.md": ["prettier --write"] +} diff --git a/src/utils/index.ts b/src/utils/index.ts index 1972bd12..346969fe 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -197,7 +197,7 @@ export const calcTaxRate = (amount: number, rate: number) => { // 查询审批分页 export const queryApprovalTable = async ( - params: AntTableParams & { [k: string]: any }, + params: AntTableParams1 & { [k: string]: any }, api?: (data: U) => Promise>, ) => { if (!api)