前端-文件上传
注意说明
handleAdd() {
...
this.upload.fileList = []; // 为了每次新上传打开不会保留上次的上传文件列表
}
handleUpdate(row) {
...
this.upload.fileList = [{ name: this.form.fileName, url: this.form.filePath }]; // 为了每次修改时显示之前上传文件列表
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
上次更新: 2025/04/03, 11:07:08