fix(frontend): Play の再読込時に UI が以前の状態を引き継いでしまう問題を修正 (#15479)
* fix * update change log
This commit is contained in:
		| @@ -65,10 +65,13 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| import { computed, onDeactivated, onUnmounted, ref, watch, shallowRef, defineAsyncComponent } from 'vue'; | ||||
| import * as Misskey from 'misskey-js'; | ||||
| import { Interpreter, Parser, values } from '@syuilo/aiscript'; | ||||
| import { url } from '@@/js/config.js'; | ||||
| import type { Ref } from 'vue'; | ||||
| import type { AsUiComponent, AsUiRoot } from '@/scripts/aiscript/ui.js'; | ||||
| import type { MenuItem } from '@/types/menu.js'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/scripts/misskey-api.js'; | ||||
| import { url } from '@@/js/config.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||||
| import MkAsUi from '@/components/MkAsUi.vue'; | ||||
| @@ -82,10 +85,6 @@ import { isSupportShare } from '@/scripts/navigator.js'; | ||||
| import { copyToClipboard } from '@/scripts/copy-to-clipboard.js'; | ||||
| import { pleaseLogin } from '@/scripts/please-login.js'; | ||||
|  | ||||
| import type { Ref } from 'vue'; | ||||
| import type { AsUiComponent, AsUiRoot } from '@/scripts/aiscript/ui.js'; | ||||
| import type { MenuItem } from '@/types/menu.js'; | ||||
|  | ||||
| const props = defineProps<{ | ||||
| 	id: string; | ||||
| }>(); | ||||
| @@ -199,6 +198,8 @@ async function run() { | ||||
| 	if (aiscript.value) aiscript.value.abort(); | ||||
| 	if (!flash.value) return; | ||||
|  | ||||
| 	components.value = []; | ||||
|  | ||||
| 	aiscript.value = new Interpreter({ | ||||
| 		...createAiScriptEnv({ | ||||
| 			storageKey: 'flash:' + flash.value.id, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ikasoba
					ikasoba