Closed amsterdam-littlehill closed 3 years ago
可以通过 在 render 方法中 通过 this.appProps 拿到 宿主传递下来的props
export default mount({
el: '#app',
data: {
test: 1
},
router,
render(h) {
console.log('context', this.appProps)
return h(App)
}
})
目前文档上缺少参数,且Mount中无法传入props从而获取宿主应用的参数