From 01acf5ee6225883c3fe2e8a75d42fbceaeaceecd Mon Sep 17 00:00:00 2001 From: Minidoracat Date: Fri, 13 Jun 2025 06:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=BE=A9=E6=9C=83?= =?UTF-8?q?=E8=A9=B1=E7=AE=A1=E7=90=86=E5=88=9D=E5=A7=8B=E5=8C=96=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mcp_feedback_enhanced/web/static/js/modules/utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mcp_feedback_enhanced/web/static/js/modules/utils.js b/src/mcp_feedback_enhanced/web/static/js/modules/utils.js index b0c9f20..0bb6e0d 100644 --- a/src/mcp_feedback_enhanced/web/static/js/modules/utils.js +++ b/src/mcp_feedback_enhanced/web/static/js/modules/utils.js @@ -10,11 +10,12 @@ // 確保命名空間存在 window.MCPFeedback = window.MCPFeedback || {}; + window.MCPFeedback.Utils = window.MCPFeedback.Utils || {}; /** - * 工具函數模組 + * 工具函數模組 - 擴展現有的 Utils 物件 */ - window.MCPFeedback.Utils = { + Object.assign(window.MCPFeedback.Utils, { /** * 格式化檔案大小 @@ -231,7 +232,7 @@ MESSAGE_WARNING: 'warning', MESSAGE_INFO: 'info' } - }; + }); console.log('✅ Utils 模組載入完成');