本地环境 xml 转图片显示,测试环境不行

This commit is contained in:
liyuetong
2021-06-11 10:47:05 +08:00
parent a5661817f4
commit 7bd58679ef

View File

@@ -102,6 +102,7 @@ export default {
}
})
that.list = res.content.list
console.log(that.list)
that.scrollToBottom() //滚动条定位底部
} else {
this.send('你好')
@@ -127,9 +128,12 @@ export default {
//纯图片需要xml字符串转换json数据数据解析
if (res.singleNode.isRichText == 2) {
res.singleNode.PicUrl = xmlLoad.xmlStr2json(res.singleNode.answerMsg).root.PicUrl
console.log(xmlLoad.xmlStr2json(itm.singleNode.answerMsg).root.PicUrl)
console.log(itm.singleNode.PicUrl)
}
that.list.push(res)
that.sendtext = ''
console.log(that.list)
that.scrollToBottom() //滚动条定位底部
}
}