diff --git a/packages/frontend/src/pages/flash/flash.vue b/packages/frontend/src/pages/flash/flash.vue index cce52113c33f..a16407e9f54b 100644 --- a/packages/frontend/src/pages/flash/flash.vue +++ b/packages/frontend/src/pages/flash/flash.vue @@ -179,7 +179,6 @@ const parser = new Parser(); const started = ref(false); const aiscript = shallowRef(null); -const root = ref(); const components = ref>>(new Map()); function start() { @@ -195,9 +194,7 @@ async function run() { ...createAiScriptEnv({ storageKey: 'flash:' + flash.value.id, }), - ...registerAsUiLib(components.value, (_root) => { - root.value = _root.value; - }), + ...registerAsUiLib(components.value), THIS_ID: values.STR(flash.value.id), THIS_URL: values.STR(`${url}/play/${flash.value.id}`), }, {