提交 78c79a17 编写于 作者: 雪洛's avatar 雪洛

feat: 支付宝小程序平台支持onBackPress

上级 8c780c04
......@@ -64,6 +64,12 @@ export default function parsePage (vuePageOptions) {
onUnload () {
this.$vm.__call_hook('onUnload')
this.$vm.$destroy()
},
events: {
// 支付宝小程序有些页面事件只能放在events下
onBack(){
this.$vm.__call_hook('onBackPress');
}
},
__r: handleRef,
__e: handleEvent,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册