feat:【全局】简化 handleStatusChange 类型逻辑的写法!

This commit is contained in:
YunaiV
2025-10-26 20:25:52 +08:00
parent 94e9d9a228
commit e30c2c5412
18 changed files with 81 additions and 143 deletions

View File

@@ -73,6 +73,7 @@ async function handleDefaultStatusChange(
.then(async () => {
// 更新默认状态
await updateAccountDefaultStatus(row.id!, newStatus);
// 提示并返回成功
message.success(`${text}默认成功`);
resolve(true);
})

View File

@@ -71,6 +71,7 @@ async function handleDefaultStatusChange(
.then(async () => {
// 更新默认状态
await updateWarehouseDefaultStatus(row.id!, newStatus);
// 提示并返回成功
message.success(`${text}默认成功`);
resolve(true);
})