linyinfei
linyinfei
There are a bug in the generateSpec.ts file. like ``` const schema = getParamSchema(headersMeta) as oa.ReferenceObject headers.push({ in: 'header', name: schema.$ref.split('/').pop() || '', required: isRequired(headersMeta, route), schema, }) ``` ```...

 上面的代码可能有问题,当hook等于onShareAppMessage时,hook重新赋值为onShare,同一页面再次转发时,上面的 fn = instance[hook]等于undefined,因为instance只有onShareAppMessage方法,没有onShare方法。