Commit d5cf5f70 by zhujian

‘fix:通讯录优化1’

parent e2ebd74b
...@@ -2,7 +2,8 @@ import React, { useRef, useLayoutEffect } from 'react' ...@@ -2,7 +2,8 @@ import React, { useRef, useLayoutEffect } from 'react'
export default function WWOpenDataCom({ type, openid }) { export default function WWOpenDataCom({ type, openid }) {
const ref = useRef(null) const ref = useRef(null)
useLayoutEffect(() => { useLayoutEffect(() => {
WWOpenData.bind(ref.current) console.log(WWOpenData)
WWOpenData && WWOpenData.bind(ref.current)
}) })
return <ww-open-data ref={ref} type={type} openid={openid} /> return <ww-open-data ref={ref} type={type} openid={openid} />
......
...@@ -161,6 +161,7 @@ function EmployeeManage() { ...@@ -161,6 +161,7 @@ function EmployeeManage() {
{/* <span className="title">{val}</span> */} {/* <span className="title">{val}</span> */}
<span className="title"> <span className="title">
<WWOpenDataCom type="userName" openid={val}/> <WWOpenDataCom type="userName" openid={val}/>
</span> </span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment