提交 3df5fa0c 编写于 作者: Neuromancer255's avatar Neuromancer255

图片上传组件图片回显

上级 86707622
......@@ -328,14 +328,14 @@ export default class AppMobPicture extends Vue {
this.uploadUrl = _uploadUrl;
this.files.forEach((file: any) => {
// if (process.env.NODE_ENV === 'development') {
// let index = this.devFiles.findIndex((devFile: any) => Object.is(devFile.id, file.id));
// if (index !== -1) {
// file.url = this.devFiles[index].url;
// file.isImage = true;
// }
// return;
// }
if (process.env.NODE_ENV === 'development') {
let index = this.devFiles.findIndex((devFile: any) => Object.is(devFile.id, file.id));
if (index !== -1) {
file.url = this.devFiles[index].url;
file.isImage = true;
}
// return;
}
let _downloadUrl = `${this.downloadUrl}/${file.id}`;
const exportContextStr: string = qs.stringify(exportContext, { delimiter: '&' });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册