浏览代码

feat: 1111

lanjianrong 5 年之前
父节点
当前提交
01b7d6fe06
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/pages/workbench/Dashboard/index.jsx

+ 2 - 4
src/pages/workbench/Dashboard/index.jsx

@@ -45,9 +45,6 @@ const Dashboard = () => {
   // 展示卡片详情
   const handleRatioCard = dataType => {
     setModalProps({
-      zIndex: '1100',
-      closable: true,
-      onClose: () => toggleModal(),
       width: '90vw',
       modalRender: () => (
         <RatioPanels
@@ -56,7 +53,8 @@ const Dashboard = () => {
           retioCyclical={state.params.cyclical}
           dataPermission={state.params.dataPermission}
         />
-      )
+      ),
+      onCancel: () => toggleModal()
     })
     toggleModal()
   }