This commit is contained in:
vapormusic 2022-02-15 23:00:22 +07:00
parent dd49b0eb6b
commit f58ceeb14c

View file

@ -41,6 +41,21 @@
catch (e){} catch (e){}
}, },
watch: {
items: function (items) {
// give every item an id
this.items.forEach(function (item, index) {
item.id = index;
});
// split items into pages
this.itemPages = app.arrayToChunk(this.items, 4);
try{
this.simplifiedParent = JSON.stringify(this.items.map ( function(x){return x.attributes.playParams}));
console.log("simplifiedParent: " + this.simplifiedParent);
}
catch (e){}
}
},
methods: { methods: {
sayHello: function () { sayHello: function () {
alert('Hello world!'); alert('Hello world!');