浏览代码

feat: 参数组装

huangzhichao 1 年之前
父节点
当前提交
819995cd4a
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/pages/index/index.tsx
  2. 1 1
      src/plugin/components/custom/index.tsx

+ 1 - 0
src/pages/index/index.tsx

@@ -10,6 +10,7 @@ const Index: React.FC = () => {
   })
 
   function openEmbeddedMiniProgram(appId, path) {
+    console.log(path)
     Taro.openEmbeddedMiniProgram({
       appId,
       path,

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

@@ -134,7 +134,7 @@ function PqCustom(props: PropsWithChildren<CustomPropsType>) {
   }
 
   function adActionReport(eventId, businessType, extParams = {}) {
-    const data = createAdActionReportData
+    const data = createAdActionReportData()
 
     adActionLog([{
       businessType,