Explorar o código

feat: 清理点击蒙层事件

huangzhichao hai 1 ano
pai
achega
0d5aa755f0
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/plugin/components/custom/index.tsx

+ 1 - 5
src/plugin/components/custom/index.tsx

@@ -136,10 +136,6 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
     setShow(false)
   }
 
-  function clickMask() {
-    closeCustom()
-  }
-
   function adActionReport(eventId, businessType, extParams = {}) {
     const data = createAdActionReportData()
 
@@ -204,7 +200,7 @@ function YLQCustom(props: PropsWithChildren<CustomPropsType>) {
 
   return (
     <>
-      {show && <View className='pq-custom' onClick={clickMask} style={{width: `${width}px`}}>
+      {show && <View className='pq-custom' style={{width: `${width}px`}}>
         <View className='custom-container'>
           {/* 广告icon */}
           <View className='icon'>