From 48e3c7f48dc49d8234c3cf3c7ffdb02854115ebd Mon Sep 17 00:00:00 2001 From: FineArchs <133759614+FineArchs@users.noreply.github.com> Date: Thu, 22 Aug 2024 06:45:18 +0900 Subject: [PATCH] Update flash.vue --- packages/frontend/src/pages/flash/flash.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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}`), }, {