reactor:清理部分 TODO

This commit is contained in:
YunaiV
2025-04-28 09:50:50 +08:00
parent 93ce26f6be
commit 08e7b32fc3
25 changed files with 95 additions and 113 deletions
-15
View File
@@ -40,19 +40,6 @@ export const floatToFixed2 = (num) => {
return str;
};
/**
* 将一个分数转换为整数
*
* @param {number | string | undefined} num 分数
* @return {number} 整数
*/
export const convertToInteger = (num) => {
if (typeof num === 'undefined') return 0;
const parsedNumber = typeof num === 'string' ? parseFloat(num) : num;
// TODO 分转元后还有小数则四舍五入
return Math.round(parsedNumber * 100);
};
/**
* 时间日期转换
* @param {dayjs.ConfigType} date 当前时间,new Date() 格式
@@ -110,8 +97,6 @@ export function handleTree(
/**
* 重置分页对象
*
* TODO 芋艿:需要处理其它页面
*
* @param pagination 分页对象
*/
export function resetPagination(pagination) {