Browse Source

宣传视频编辑

dev
巴林闲侠 2 years ago
parent
commit
a840bdcd90
  1. 36
      web/client/src/components/Upload/index.js

36
web/client/src/components/Upload/index.js

@ -27,28 +27,28 @@ class Uploads extends Component {
return showName return showName
} }
// setFileList = (value) => { setFileList = (value) => {
// let defaultFileList = []; let defaultFileList = [];
// defaultFileList = value.map((u, index) => { defaultFileList = value.map((u, index) => {
// let fileUrl = `${this.ApiRoot}/${u.url}`; let fileUrl = `${this.ApiRoot}/${u.url}`;
// return { return {
// uid: -index - 1, uid: -index - 1,
// name: this.dealName(u.url), name: this.dealName(u.url),
// status: 'done', status: 'done',
// storageUrl: u.url, storageUrl: u.url,
// url: fileUrl url: fileUrl
// }; };
// }); });
// onChange(defaultFileList) // onChange(defaultFileList)
// this.setState({ this.setState({
// fileList: defaultFileList fileList: defaultFileList
// }); });
// }; };
componentDidMount() { componentDidMount() {
const { value } = this.props; const { value } = this.props;
if (value) { if (value) {
this.setState(value); this.setFileList(value);
} }
} }

Loading…
Cancel
Save