remove log
This commit is contained in:
parent
6c601bc534
commit
040b9b4e37
|
@ -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()
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue