|
|
@@ -543,7 +543,7 @@ const handleChange1 = async () => {
|
|
|
* @param subtrahend 减数
|
|
|
* @returns 差值,若接口无数据则返回 0
|
|
|
*/
|
|
|
-const calSub = async (minuend: number, subtrahend: number) => {
|
|
|
+const calSub = async (minuend: number = 0, subtrahend: number) => {
|
|
|
const res = await api.financeApi.calSub({ minuend, subtrahend })
|
|
|
return res.data || 0
|
|
|
}
|