zxhlyh 1 年之前
父節點
當前提交
77636945fb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      web/context/provider-context.tsx

+ 2 - 1
web/context/provider-context.tsx

@@ -113,7 +113,8 @@ export const ProviderContextProvider = ({
         utm_term: '',
       }
     }
-    operationUtm({ url: '/operation/utm', body: utm })
+    if (utm.utm_source || utm.utm_medium || utm.utm_campaign || utm.utm_content || utm.utm_term)
+      operationUtm({ url: '/operation/utm', body: utm })
   }
   useEffect(() => {
     (async () => {