diff --git a/components/AddWeChat/index.js b/components/AddWeChat/index.js index 10c2c45..69a11ff 100644 --- a/components/AddWeChat/index.js +++ b/components/AddWeChat/index.js @@ -85,7 +85,11 @@ export default function AddWeChat({ }); return; } - if (userWechat.match(/wxid_|[\u4e00-\u9fa5]/g)) { + if ( + userWechat.match( + /wxid_|[\u4e00-\u9fa5]|[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3010|\u3011|\u007e]/g + ) + ) { Toast.show({ content: "请提交可被搜索的有效微信", position: "top", diff --git a/components/ImagesMask/index.jsx b/components/ImagesMask/index.jsx index 7108612..ea5532d 100644 --- a/components/ImagesMask/index.jsx +++ b/components/ImagesMask/index.jsx @@ -21,7 +21,9 @@ function ImagesMask({}, ref) { const defaultIndex = useRef(null); const router = useRouter(); useEffect(() => { + let body = document.body; if (visible) { + body.style.touchAction = "none"; const root = createRoot(document?.getElementById("maskDomBox")); root.render(