uploadBase64

上传base64的接口,return Promise

{
    ...,
    uploadBase64: () => {
        return new Promise((resolve, reject) => {
           $.ajax.post(`/common/upload_base64`, data).done(res => {
                //res 格式: { path: '图片路径', id: '唯一id' }
                resolve(res);
           });
        })
    }
}

results matching ""

    No results matching ""