fix: editor App.vue updates

This commit is contained in:
2026-06-14 17:50:26 +08:00
parent 82bfae0e1b
commit a681e371ae

View File

@@ -18,7 +18,8 @@ const showPreview = ref(false)
const previewVideoUrl = computed(() => { const previewVideoUrl = computed(() => {
const url = store.selectedScene?.videoUrl const url = store.selectedScene?.videoUrl
if (!url) return null if (!url) return null
return resolveAsset(store.gameData.assetBase || '', url) const resolved = resolveAsset(store.gameData.assetBase || '', url)
return resolved.startsWith('/') ? resolved : '/' + resolved
}) })
function newNode() { function newNode() {