element Image 图片无法识别http://cdn.bjjbkj.cn/taxRegistration/1300739105058988034.jpg?Expires=2229675344&OSSAccessKeyId=LTAI4Fz88ncyLPyRo9Kdfoq4&Signature=cNIguOCZttEHMLR%2BKN%2BcLrpHHGg%3D这类图片地址

wfauudbj  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(44)

var Main = {
data() {
return {
url: ' http://cdn.bjjbkj.cn/taxRegistration/1300739105058988034.jpg?Expires=2229675344&OSSAccessKeyId=LTAI4Fz88ncyLPyRo9Kdfoq4&Signature=cNIguOCZttEHMLR%2BKN%2BcLrpHHGg%3D ',
srcList: [
'http://cdn.bjjbkj.cn/taxRegistration/1300739105058988034.jpg?Expires=2229675344&OSSAccessKeyId=LTAI4Fz88ncyLPyRo9Kdfoq4&Signature=cNIguOCZttEHMLR%2BKN%2BcLrpHHGg%3D'
]
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')

5t7ly7z5

5t7ly7z51#

同上,我是使用window的createObjectURL实现上传以后将值赋值给img的src(不知道你的是否可以)

ttvkxqim

ttvkxqim2#

同上,我是使用window的createObjectURL实现上传以后将值赋值给img的src(不知道你的是否可以)
把地址直接放进src中可以,但变量赋值就不行,最后我吧图片转为base64放进去的

zfciruhq

zfciruhq3#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题