|
@@ -46,11 +46,17 @@ export default {
|
|
|
} else {
|
|
|
this.img_list = this.pList;
|
|
|
}
|
|
|
+
|
|
|
+ this.img_list = this.img_list.map(item => item + "?t=" + this.generateRandomString(20))
|
|
|
if (this.img_list.length > 0) {
|
|
|
this.src = this.img_list[0];
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ generateRandomString(length) {
|
|
|
+ let str = Math.random().toString(36).substring(2, length + 2);
|
|
|
+ return str;
|
|
|
+ },
|
|
|
asd(index) {
|
|
|
this.src = this.img_list[index];
|
|
|
},
|