remove log

This commit is contained in:
Kseninia Mikhaylova 2024-06-27 14:34:53 +03:00
parent 6c601bc534
commit 040b9b4e37
2 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,6 @@ const loadModels = async () => {
}
clickable_objects.value.push(res)
}
console.log(clickable_objects)
}
}
onMounted(() => {
@ -129,7 +128,7 @@ const clickEvent = (event: MouseEvent) => {
watch(() => props.source, () => {
const loaded = seekByName(scene.value, 'loaded')
if (loaded) {
scene.value.remove(loaded)
loaded.children = []
}
loadModels()
})

View File

@ -38,7 +38,7 @@ const point_light = reactive({
const route = useRoute()
const source = ref(route.params.target ? (route.params.target.toString() + '/') : '1/')
watch(() => route.params.target, () => {
let t = '1'
let t = '1/'
if (route.params.target) t = route.params.target.toString() + '/'
if (source.value !== t) {
source.value = t