图片预览路径

This commit is contained in:
宋伟佳
2021-12-15 19:53:52 +08:00
parent 57272d999c
commit 8bf3254779
7 changed files with 7 additions and 7 deletions
@@ -185,7 +185,7 @@ export default {
pubOrgName: '', pubOrgName: '',
content: '', content: '',
linkUri: '', linkUri: '',
uploadPath: 'uploadPath', uploadPath: 'file',
resPk: '', resPk: '',
fileList: [], fileList: [],
picList: [], picList: [],
@@ -174,7 +174,7 @@ export default {
pubOrgName: '', pubOrgName: '',
content: '', content: '',
linkUri: '', linkUri: '',
uploadPath: 'uploadPath', uploadPath: 'file',
resPk: '', resPk: '',
fileList: [], fileList: [],
picList: [], picList: [],
@@ -1707,7 +1707,7 @@ export default {
if (res.ok) { if (res.ok) {
let imgPath = res.data.filePath let imgPath = res.data.filePath
let imgName = res.data.fileName let imgName = res.data.fileName
let imgSrc = 'uploadPath' + imgPath + imgName let imgSrc = 'file' + imgPath + imgName
// let imgSrc = imgPath + imgName // let imgSrc = imgPath + imgName
// this.itemsContentList[this.saveUploadImgIndex].itemContent = 'uploadPath' + imgPath + imgName // this.itemsContentList[this.saveUploadImgIndex].itemContent = 'uploadPath' + imgPath + imgName
this.itemsContentList[this.saveAddIndex + 1].itemContent = '<img class=\'wordImg\' src=\'' + imgSrc + '\'>' this.itemsContentList[this.saveAddIndex + 1].itemContent = '<img class=\'wordImg\' src=\'' + imgSrc + '\'>'
@@ -87,7 +87,7 @@ export default {
pubOrgName: '', pubOrgName: '',
content: '', content: '',
linkUri: '', linkUri: '',
uploadPath: 'uploadPath', uploadPath: 'file',
resPk: '', resPk: '',
fileList: [], fileList: [],
picList: [], picList: [],
@@ -194,7 +194,7 @@ export default {
loading: 'loading' loading: 'loading'
}, res => { }, res => {
this.userInfo.userPic = res.data.id this.userInfo.userPic = res.data.id
this.userAvator = 'uploadPath' + res.data.filePath + res.data.fileName this.userAvator = 'file' + res.data.filePath + res.data.fileName
}) })
}, },
// 保存用户信息 // 保存用户信息
@@ -81,7 +81,7 @@ export default {
content: '' content: ''
}, },
linkUri: '', linkUri: '',
uploadPath: 'uploadPath', uploadPath: 'file',
resPk: '', resPk: '',
fileList: [], fileList: [],
picList: [], picList: [],
@@ -158,7 +158,7 @@ export default {
pubOrgName: '', pubOrgName: '',
content: '', content: '',
linkUri: '', linkUri: '',
uploadPath: 'uploadPath', uploadPath: 'file',
resPk: '', resPk: '',
fileList: [], fileList: [],
picList: [], picList: [],