前言
mpvue構建小程序,採用vant weapp新版1.0中的Uploader的時,使用after-read
方法無效
解決方法
mpvue文檔中沒發現以'-'
鏈接的方法,而是使用的駝峯命名法。
所以將vant源碼中的after-read
修改爲afterRead
,在組件頁面中使用
@afterRead="uploaderAfter"
這樣就可以正常觸發事件了
mpvue構建小程序,採用vant weapp新版1.0中的Uploader的時,使用after-read
方法無效
mpvue文檔中沒發現以'-'
鏈接的方法,而是使用的駝峯命名法。
所以將vant源碼中的after-read
修改爲afterRead
,在組件頁面中使用
@afterRead="uploaderAfter"
這樣就可以正常觸發事件了
onLoad(options) { this.page_query = options; }, onShow() { const _this = this; wx.page