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')
3条答案
按热度按时间5t7ly7z51#
同上,我是使用window的createObjectURL实现上传以后将值赋值给img的src(不知道你的是否可以)
ttvkxqim2#
同上,我是使用window的createObjectURL实现上传以后将值赋值给img的src(不知道你的是否可以)
把地址直接放进src中可以,但变量赋值就不行,最后我吧图片转为base64放进去的
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.