From 5f7d9ee0a980a6876a31d079dd146c473c25c571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 9 Dec 2022 11:10:44 +0300 Subject: [PATCH] refactor --- pages/deferredcontent/index.vue | 6 +++--- pages/galleria/Advanced.vue | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/pages/deferredcontent/index.vue b/pages/deferredcontent/index.vue index 7e6301bc8..784febd47 100755 --- a/pages/deferredcontent/index.vue +++ b/pages/deferredcontent/index.vue @@ -12,9 +12,9 @@
Scroll down to lazy load an image and the DataTable which initiates a query that is not executed on initial page load to speed up load performance.
- + + Nature +
diff --git a/pages/galleria/Advanced.vue b/pages/galleria/Advanced.vue index 112c5e6ed..057cb2b10 100644 --- a/pages/galleria/Advanced.vue +++ b/pages/galleria/Advanced.vue @@ -250,15 +250,11 @@ export default { created() { this.galleriaService = new PhotoService(); }, - async mounted() { - await this.test(); + mounted() { + this.galleriaService.getImages().then((data) => (this.images = data)); this.bindDocumentListeners(); }, methods: { - async test() { - const data = await this.galleriaService.getImages(); - this.images = data; - }, onThumbnailButtonClick() { this.showThumbnails = !this.showThumbnails; },