How does WeChat Mini Programs long press the picture to save?

how does WeChat Mini Programs long press the picture to save?

Mar.21,2021

has been solved. You need to use getImageInfo to get the picture path first, and then save it to the album with saveImageToPhotosAlbum


viewImage(e) {
    const { src } = e.target.dataset;
    wx.previewImage({
        url: [src],
    });
}
Menu