Create scripts/store/getters

This commit is contained in:
Aleksandr Statciuk 2021-12-12 07:11:50 +03:00
parent 0e21288935
commit 21b8ce8731
8 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,12 @@
module.exports = function () {
if (this.group_title) return this.group_title
if (Array.isArray(this.categories)) {
return this.categories
.map(i => i.name)
.sort()
.join(';')
}
return ''
}