handle images

This commit is contained in:
Klemek
2023-08-29 19:04:16 +02:00
parent 025d478178
commit 9aafeec8f6
3 changed files with 13 additions and 6 deletions
+6
View File
@@ -83,6 +83,12 @@ let app = {
},
},
methods: {
getFormatedData(i) {
if (this.currentItem[i].startsWith('data:')) {
return this.columns[i] + ' :<br><img src="' + this.currentItem[i] + '" />';
}
return this.columns[i] + ' : ' + this.currentItem[i];
},
showApp() {
document.getElementById('app').setAttribute('style', '');
},