shaogen1995 2 年之前
父节点
当前提交
e0f1bc3f20
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      管理后台/src/pages/A2Wall/WallLook/index.tsx

+ 2 - 2
管理后台/src/pages/A2Wall/WallLook/index.tsx

@@ -27,14 +27,14 @@ function WallLook({ id, imgList, closeMoalFu }: Props) {
 
   // 动态修改模态框的宽度
   useEffect(() => {
-    const dom: any = document.querySelector(".WallLook .ant-modal");
+    const dom: any = document.querySelector(".myWallLook .ant-modal");
     if (dom && imgShowList && imgShowList.length > 2)
       dom.style.width = imgShowList.length * 200 + "px";
   }, [imgShowList]);
 
   return (
     <Modal
-      wrapClassName={styles.WallLook}
+      wrapClassName={styles.WallLook + " myWallLook"}
       destroyOnClose
       open={true}
       title="预览效果"