From 0e9c0eb037511d198167d2dbd9f43f1232eac974 Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 22 Oct 2025 17:20:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(storage):=20=E4=BF=AE=E5=A4=8D=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E6=93=8D=E4=BD=9C=E5=93=8D=E5=BA=94=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=EF=BC=8C=E5=85=BC=E5=AE=B9=E7=8E=B0=E6=9C=89=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/context-menu/storage-menu.vue | 4 ++-- src/services/storageApi.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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; + }>; }; }