chore: editor App.vue update

This commit is contained in:
2026-06-14 20:48:19 +08:00
parent c6afeb2691
commit 61fd5dbc2d

View File

@@ -59,6 +59,7 @@ async function onFileSelected(e: Event) {
const data = JSON.parse(await file.text()) as GameData
if (!data.scenes || typeof data.scenes !== 'object') throw new Error('无效的场景数据')
store.loadJSON(data)
store.setSourcePath('/scenes/imported.json')
} catch (err: any) {
error.value = '导入失败:' + err.message
setTimeout(() => (error.value = ''), 3000)