This commit is contained in:
Viet An
2026-06-07 11:25:43 +07:00
parent ee914cc382
commit 605b016a5f
18 changed files with 156 additions and 141 deletions

View File

@@ -295,7 +295,7 @@ export default {
{ name: "image", icon: "material-symbols:grid-view-outline-rounded" },
],
timer: undefined,
vbind: { api: "file", setting: "image-fields" },
vbind: { api: "file", setting: "image-fields", pagename: "image-fields" },
dataFiles: [],
files: [],
docid: this.$id(),
@@ -314,7 +314,7 @@ export default {
this.data = result[0].data.rows;
},
watch: {
data: function () {
data() {
this.group = [];
for (let index = 0; index < this.data.length / (this.type === "video" ? 4 : 5); index++) {
this.group.push(index);
@@ -323,18 +323,18 @@ export default {
},
computed: {
login: {
get: function () {
get() {
return this.$store.login;
},
set: function (val) {
set(val) {
this.$store.commit("updateLogin", { login: val });
},
},
media: {
get: function () {
get() {
return this.$store.media;
},
set: function (val) {
set(val) {
this.$store.commit("updateMedia", { media: val });
},
},