|
@@ -272,7 +272,18 @@ export default {
|
|
|
},
|
|
|
/* */
|
|
|
handleFileChange(file, fileList) {
|
|
|
- this.fileList = fileList.map((f) => f.raw);
|
|
|
+ // Update this method
|
|
|
+ this.fileList = fileList.map((f) => {
|
|
|
+ if (!f.uid) {
|
|
|
+ f.uid = Date.now() + this.randomString(); // Add a unique identifier
|
|
|
+ }
|
|
|
+ return f;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ // Add this new method
|
|
|
+ randomString() {
|
|
|
+ return Math.random().toString(36).substring(2, 15);
|
|
|
},
|
|
|
|
|
|
handleRemove(file, fileList) {
|