diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-25 13:24:08 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-25 13:24:08 +0300 |
| commit | 905b9771ec74c4c79e5795676ea9c3946e586ce9 (patch) | |
| tree | e75e4ea9f2f5eaab32af5c8f31231acdf9f8fd62 /src/components/gallery/gallery.js | |
| parent | fca885e665094b8efcbc65a3f4ec9ba31679c4c2 (diff) | |
stop using vue.set
Diffstat (limited to 'src/components/gallery/gallery.js')
| -rw-r--r-- | src/components/gallery/gallery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/gallery/gallery.js b/src/components/gallery/gallery.js index f856fd0a..d13d98f9 100644 --- a/src/components/gallery/gallery.js +++ b/src/components/gallery/gallery.js @@ -34,7 +34,7 @@ const Gallery = { }, methods: { onNaturalSizeLoad (id, size) { - this.$set(this.sizes, id, size) + this.sizes[id] = size }, rowStyle (itemsPerRow) { return { 'padding-bottom': `${(100 / (itemsPerRow + 0.6))}%` } |
