#I515TN 解决markdown上传图片错误,build
This commit is contained in:
@@ -256,9 +256,9 @@
|
||||
timeout: 10000,
|
||||
withCredentials: true
|
||||
}).then(res => {
|
||||
let urlArr = res.data.data || [];
|
||||
if (urlArr.length > 0) {
|
||||
this.$refs.mavonEditor.$img2Url(pos, urlArr[0]);
|
||||
let urlObj = res.data.data || {};
|
||||
if (urlObj.url) {
|
||||
this.$refs.mavonEditor.$img2Url(pos, urlObj.url);
|
||||
} else {
|
||||
this.$message.warning("上传失败,返回数据为空");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user