开源商城
export default {
methods: {
getImageBase64(images) {
// 生成一个数组let spreadList = []images.forEach(item => {
const oneApi = imageBase64({
url: item.pic}).then(res => {
return res.data.code;})spreadList.push(oneApi)})Promise.all(spreadList).then(result => {
// 业务结构})}}
}
开源地址