# convertImageToBase64 ^6.3

ss转换在线图片成 base64 数据返回(H5自行转换有跨域问题)

# 请求参数

Prop Type Required Default Description
param Object Y {}
属性:
url:{
Type: String,
Default: N/A,
Description: url为http开头的在线图片
}
请求参数

# 接口调用示例


this.$bridge
    .convertImageToBase64(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })
1
2
3
4
5
6
7
8
9

# 返回参数

  • 成功时返回
Prop Type Default Description
base64 String N/A -
Last Updated: 10/27/2020, 4:35:43 PM