Solve one of the after-read method callback function call is unsuccessful when mpvue project using vant-weapp component library Uploader

  When writing an applet project, using a combination of mpvue framework vant-weapp component library, which want to achieve picture upload function, it means the Uploader assembly, official documents are written like this:

    

     

 

  According to wait until the call interface documentation only to find the callback function does not call succeeds, I also checked a lot of documents found is because they can not resolve them "-" to introduce the following solution:

  • Vant-weapp uploader modify the source component:

           

 

  After entering through Ctrl + F to find "afterread", change it to "afterread", there are two:

    

 

 

  • Then modify the reference to the component location, also written "afterread"

     

 

 

  Through the above two steps, the callback function (I am here is imagesAfterRead) can be called a success! ! !

 

Guess you like

Origin www.cnblogs.com/belongs-to-qinghua/p/12405613.html