调整字体栏编辑效果,增加LocalStorage缓存

This commit is contained in:
2025-03-21 14:43:03 +08:00
parent b951e0ea5e
commit 78c4b2a2c1
3 changed files with 57 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ import zh from './locales/zh.json'
import ja from './locales/ja.json'
import { createPinia } from 'pinia' // 导入 Pinia
import {useFilesStore} from "@/ts/files";
const app = createApp(App)
@@ -59,4 +60,8 @@ app.use(pinia) // 使用 Pinia
.use(i18n)
.use(ElementPlus)
.use(Vue3DraggableResizable)
.mount('#app')
.mount('#app')
const filesStore = useFilesStore();
filesStore.setupAutoSave();
filesStore.initializeWithPrompt();