|
@ -25,6 +25,14 @@ export default { |
|
|
const userId = '1218763410024566784'; |
|
|
const userId = '1218763410024566784'; |
|
|
const params = { userId }; |
|
|
const params = { userId }; |
|
|
this.getUserId(params); |
|
|
this.getUserId(params); |
|
|
|
|
|
|
|
|
|
|
|
window.plugin = TallPlugin.init(); |
|
|
|
|
|
// 调用created方法 向主窗体发送created消息,以便来接受、存储主窗体传递来的参数 |
|
|
|
|
|
// created接受一个回调函数 created成功后调用 可选参数 |
|
|
|
|
|
window.plugin.created(function(props) { |
|
|
|
|
|
console.log(this); |
|
|
|
|
|
console.log(props, props.projectId, this.config); |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: mapActions('home', ['getUserId']), |
|
|
methods: mapActions('home', ['getUserId']), |
|
|