Переглянути джерело

refactor: 清理BusinessZone组件中的调试日志

- 移除exam和process按钮禁用状态中的console.log语句

改动文件:
- src/layouts/BusinessZone.tsx
dengdx 4 днів тому
батько
коміт
78dfa875c2
2 змінених файлів з 11 додано та 7 видалено
  1. 9 1
      CHANGELOG.md
  2. 2 6
      src/layouts/BusinessZone.tsx

+ 9 - 1
CHANGELOG.md

@@ -2,6 +2,14 @@
 
 本项目的所有重要变更都将记录在此文件中.
 
+## [1.69.0] - 2026-01-13 22:38
+refactor: 清理BusinessZone组件中的调试日志
+
+- 移除exam和process按钮禁用状态中的console.log语句
+
+改动文件:
+- src/layouts/BusinessZone.tsx
+
 ## [1.69.0] - 2026-01-13 18:16
 feat (1.68.0 -> 1.69.0): 优化R标记添加功能,使用TextAnnotationToolManager替代LabelTool
 
@@ -170,4 +178,4 @@ feat (1.66.2 -> 1.67.0): 实现文本标记工具功能,支持在图像上添
 
 - src/API/system/options.ts
 - src/pages/system/SettingsModal/sections/Preferences/index.tsx
-- src/pages/system/SettingsModal/sections/Preferences/report/index.tsx### 新增 (Added)
+- src/pages/system/SettingsModal/sections/Preferences/report/index.tsx### 新增 (Added)

+ 2 - 6
src/layouts/BusinessZone.tsx

@@ -111,8 +111,7 @@ function useItems(btnAvailability: Record<string, boolean>, productName: 'DROS'
     {
       key: 'exam',
       disabled:
-        (console.log(`我要看看exam对应的值:${!btnAvailability['exam']}`),
-        !btnAvailability['exam']),
+        (!btnAvailability['exam']),
       label: (
         <FormattedMessage
           id="exam"
@@ -127,10 +126,7 @@ function useItems(btnAvailability: Record<string, boolean>, productName: 'DROS'
     {
       key: 'process',
       disabled:
-        (console.log(
-          `我要看看[process]对应的值:${!btnAvailability['process']}`
-        ),
-        !btnAvailability['process']),
+        (!btnAvailability['process']),
       label: (
         <FormattedMessage
           id="process"