fix: 修复前端 TypeScript 类型错误

- file-upload.ts: 重写上传逻辑,正确使用 files 数组和类型
- CompanyMenuDrawer/CompanyPermissionDrawer: 修复 Tree @check 事件类型
- 移除各页面未使用的导入和函数
- promotion-fee: 修复类型导出问题
- 修复 VxeGrid 配置重复和无效属性问题
This commit is contained in:
小蟑螂
2026-05-07 20:41:03 +08:00
parent ff790a7a97
commit d8da5a1b33
17 changed files with 314 additions and 100 deletions
@@ -27,11 +27,6 @@ const formatAmount = (amount: number) => {
return `¥${amount.toLocaleString('zh-CN')}`;
};
const safeNumber = (value: number | string | undefined) => {
const num = Number(value);
return Number.isFinite(num) ? num : 0;
};
// 渲染店铺销售占比排行图表
const renderShopBarChart = () => {
if (!barChartRef.value || !props.shopSalesRatios) return;