From af908216bb0012fe849e3b49b3039c7ba238f8f0 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期五, 11 八月 2023 14:35:43 +0800
Subject: [PATCH] 补充controller,修改变量,主页bug修改

---
 force-app/main/default/classes/otherButtonRepairController.cls |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/otherButtonRepairController.cls b/force-app/main/default/classes/otherButtonRepairController.cls
index 1907e8d..7e36f0b 100644
--- a/force-app/main/default/classes/otherButtonRepairController.cls
+++ b/force-app/main/default/classes/otherButtonRepairController.cls
@@ -166,11 +166,11 @@
             repair.Facility_Return_Receipt_Collection_reque__c = Datetime.now().date();
             
             update repair;
+            return 'ok';
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
-            res = e.getMessage();
+            throw new AuraHandledException(e.getMessage());
         }
-        return res;
     }
 
     // 鏌ユ壘PAE鍒ゅ畾璁板綍

--
Gitblit v1.9.1