Sfoglia il codice sorgente

图像处理未实现按钮,提示

sw 5 giorni fa
parent
commit
279c8fc78b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/pages/view/components/FunctionArea.tsx

+ 2 - 2
src/pages/view/components/FunctionArea.tsx

@@ -22,11 +22,11 @@ const FunctionButton = ({
     if(action==='AddMask'||
       action==='Delete Digital Mask'||
       action==='Crop Selected Area' ||
-      action in ['Delete Mask',
+      ['Delete Mask',
         'Image Comparison','Zoom Image','Reset Cursor','Pan','Snapshot','Advanced Processing','Musician',
         'Image Measurement',
         'More',
-      ]
+      ].includes(action)
     ){
 showNotImplemented('');
 return;