♻️ Refactor the Markdown preview theme application logic

This commit is contained in:
2025-11-21 20:20:06 +08:00
parent 339ed53c2e
commit 4e82e2f6f7
6 changed files with 71 additions and 17 deletions

View File

@@ -35,17 +35,16 @@ onMounted(async () => {
// onBeforeUnmount(() => {
// editorStore.clearAllEditors();
//
// });
</script>
<template>
<div class="editor-container">
<div ref="editorElement" class="editor"></div>
<Toolbar/>
<transition name="loading-fade">
<LoadingScreen v-if="editorStore.isLoading && enableLoadingAnimation" text="VOIDRAFT"/>
</transition>
<div ref="editorElement" class="editor"></div>
<Toolbar/>
</div>
</template>