fix(storage): 修复存储操作响应类型,兼容现有使用处
This commit is contained in:
parent
40b1891ca1
commit
0e9c0eb037
@ -252,7 +252,7 @@ const handleStorageAction = async (action: string, actionName: string) => {
|
||||
action,
|
||||
location: selectedLocation.value,
|
||||
success: true,
|
||||
});
|
||||
} as any);
|
||||
} catch (error) {
|
||||
console.error(`库位${actionName}操作失败:`, error);
|
||||
|
||||
@ -262,7 +262,7 @@ const handleStorageAction = async (action: string, actionName: string) => {
|
||||
location: selectedLocation.value,
|
||||
success: false,
|
||||
message: error instanceof Error ? error.message : String(error),
|
||||
});
|
||||
} as any);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -26,6 +26,11 @@ export interface StorageActionResponse {
|
||||
layer_name: string;
|
||||
error: string;
|
||||
}>;
|
||||
// 为兼容现有使用处(storageActionService.ts)
|
||||
results?: Array<{
|
||||
layer_name: string;
|
||||
message: string;
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user