From b8183f318086376ccc0aec95179e1a16a67e8e60 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 12 Jul 2024 14:14:31 +0300 Subject: [PATCH] func check --- front/.env.development | 4 ++-- front/src/components/Promo/load_models.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/front/.env.development b/front/.env.development index 43e754f..3bcc289 100644 --- a/front/.env.development +++ b/front/.env.development @@ -1,3 +1,3 @@ -# VITE_SERVER_URL='http://localhost:8000' VITE_SERVER_URL='https://demo.kustarshina.ru' -VITE_IMAGE_URL='https://demo.kustarshina.ru' \ No newline at end of file +VITE_IMAGE_URL='https://demo.kustarshina.ru' +VITE_SERVER_URL='http://localhost:8000' \ No newline at end of file diff --git a/front/src/components/Promo/load_models.vue b/front/src/components/Promo/load_models.vue index f0b4a48..d3eb53a 100644 --- a/front/src/components/Promo/load_models.vue +++ b/front/src/components/Promo/load_models.vue @@ -134,7 +134,7 @@ const { onLoop } = useRenderLoop() onLoop(() => { clickable_refs.value.map(el => { // el.quaternion.copy(camera.value?.quaternion); - if (el.value[0]) { + if (el.value[0] && typeof el.value[0].lookAt == 'function') { el.value[0].lookAt(camera.value?.position) } })