mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
调整字体栏编辑效果,增加LocalStorage缓存
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user