Browse Source

修改图片bug

dev
dengyinhuan 1 year ago
parent
commit
f3e9246422
  1. 4
      web/client/src/sections/fillion/components/uploads.js

4
web/client/src/sections/fillion/components/uploads.js

@ -56,12 +56,12 @@ class Uploads extends Component {
componentWillReceiveProps (np) { componentWillReceiveProps (np) {
const { dispatch, value: thisEditData, onChange } = this.props; const { dispatch, value: thisEditData, onChange } = this.props;
const { value: nextEditData, clearFileList } = np; const { value: nextEditData, clearFileList } = np;
console.log(nextEditData,'哈哈哈哈')
const setFileList = () => { const setFileList = () => {
let defaultFileList = []; let defaultFileList = [];
defaultFileList = nextEditData.map((u, index) => { defaultFileList = nextEditData.map((u, index) => {
// let fileUrl = `${this.ApiRoot}/${u.storageUrl}`; // let fileUrl = `${this.ApiRoot}/${u.storageUrl}`;
let fileUrl = `${u.storageUrl}`; let fileUrl = `${u.url}`;
return { return {
uid: -index - 1, uid: -index - 1,
name: this.dealName(u.storageUrl), name: this.dealName(u.storageUrl),

Loading…
Cancel
Save