diff --git a/src/components/context-menu/storage-menu.vue b/src/components/context-menu/storage-menu.vue index 0bea0a5..e6a77ea 100644 --- a/src/components/context-menu/storage-menu.vue +++ b/src/components/context-menu/storage-menu.vue @@ -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); } }; diff --git a/src/services/storageApi.ts b/src/services/storageApi.ts index 47eb6a7..ea11734 100644 --- a/src/services/storageApi.ts +++ b/src/services/storageApi.ts @@ -26,6 +26,11 @@ export interface StorageActionResponse { layer_name: string; error: string; }>; + // 为兼容现有使用处(storageActionService.ts) + results?: Array<{ + layer_name: string; + message: string; + }>; }; }