Create scripts/store/getters

This commit is contained in:
Aleksandr Statciuk committed 2021-12-12 07:11:50 +03:00
1 parent 82c242a1b6
commit df6af6dec0
8 files changed
+49

No files matched your search

+12
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 ''
}