Add configuration information file storage

This commit is contained in:
2025-04-27 18:04:08 +08:00
parent 946075f25d
commit 3ab209f899
20 changed files with 1106 additions and 58 deletions

View File

@@ -1,14 +1,21 @@
<script setup lang="ts">
import {onMounted} from 'vue';
import Editor from '@/editor/Editor.vue';
import Toolbar from '@/components/toolbar/Toolbar.vue';
import {useConfigStore} from "@/stores/configStore";
const configStore = useConfigStore();
onMounted(async () => {
await configStore.loadConfigFromBackend();
})
</script>
<template>
<div class="app-container">
<div class="editor-wrapper">
<Editor />
<Editor/>
</div>
<Toolbar />
<Toolbar/>
</div>
</template>
@@ -20,7 +27,7 @@ import Toolbar from '@/components/toolbar/Toolbar.vue';
padding: 0;
display: flex;
flex-direction: column;
.editor-wrapper {
flex: 1;
overflow: hidden;