feat:【全局】简化 handleStatusChange 类型逻辑的写法!
This commit is contained in:
@@ -73,6 +73,7 @@ async function handleDefaultStatusChange(
|
||||
.then(async () => {
|
||||
// 更新默认状态
|
||||
await updateAccountDefaultStatus(row.id!, newStatus);
|
||||
// 提示并返回成功
|
||||
message.success(`${text}默认成功`);
|
||||
resolve(true);
|
||||
})
|
||||
|
||||
@@ -71,6 +71,7 @@ async function handleDefaultStatusChange(
|
||||
.then(async () => {
|
||||
// 更新默认状态
|
||||
await updateWarehouseDefaultStatus(row.id!, newStatus);
|
||||
// 提示并返回成功
|
||||
message.success(`${text}默认成功`);
|
||||
resolve(true);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user