From 73a1dcb7f1c3839bd7fee2762987c772c9da3206 Mon Sep 17 00:00:00 2001 From: aarizona Date: Fri, 30 Aug 2024 13:34:36 +0300 Subject: [PATCH] serializer --- back/object/serializers.py | 2 -- front/src/components/Gallery/index.vue | 6 +++--- front/src/components/Promo/index.vue | 10 +--------- front/src/components/load.vue | 1 + front/src/components/nav.vue | 8 ++++---- front/src/stores/item.ts | 9 +++------ 6 files changed, 12 insertions(+), 24 deletions(-) diff --git a/back/object/serializers.py b/back/object/serializers.py index ec50e36..81a9032 100644 --- a/back/object/serializers.py +++ b/back/object/serializers.py @@ -33,8 +33,6 @@ class Scene3DSerializer(serializers.ModelSerializer): class ClickableAreaSerializer(serializers.ModelSerializer): - image = serializers.ImageField(use_url=False) - class Meta: model = ClickableArea fields = "__all__" diff --git a/front/src/components/Gallery/index.vue b/front/src/components/Gallery/index.vue index 019248c..f253a71 100644 --- a/front/src/components/Gallery/index.vue +++ b/front/src/components/Gallery/index.vue @@ -6,17 +6,17 @@ import KLogo from "../../assets/promo/logo.svg"; import { useItem } from "../../stores/item"; const router = useRouter() -const page = useItem() +const pageStore = useItem() const startColor = `hsl(${(Math.random() * 360).toFixed()}, 100%, 50%)` const endColor = `hsl(${(Math.random() * 360).toFixed()}, 100%, 50%)`