Commit 97841688 by FE

call app 01

parent 4a8db9bb
...@@ -24,23 +24,16 @@ const options = { ...@@ -24,23 +24,16 @@ const options = {
class OpenApp extends Component { class OpenApp extends Component {
// callApp = new CallApp(options) callApp = new CallApp(options)
callApp = null
static defaultProps = { static defaultProps = {
text: '在APP打开' text: '在APP打开'
} }
componentWillMount() {
this.callApp = new CallApp({
...options,
path: this.props.path || '/'
});
}
handleClick = () => { handleClick = () => {
this.callApp.open({}) this.callApp.open({
path: this.props.path
})
} }
render() { render() {
......
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