22import { storeLabels } from ' @md/shared/configs'
33import { Expand , UploadCloud } from ' lucide-vue-next'
44import { useCssEditorStore } from ' @/stores/cssEditor'
5- import { useDisplayStore } from ' @/stores/display'
65import { usePostStore } from ' @/stores/post'
76import { useRenderStore } from ' @/stores/render'
87import { useThemeStore } from ' @/stores/theme'
@@ -22,7 +21,6 @@ const uiStore = useUIStore()
2221const postStore = usePostStore ()
2322const cssEditorStore = useCssEditorStore ()
2423const renderStore = useRenderStore ()
25- const displayStore = useDisplayStore ()
2624
2725watch (
2826 () => props .visible ,
@@ -96,12 +94,12 @@ function getAllStoreStates() {
9694 readingTime: renderStore .readingTime ,
9795
9896 // Display store 的状态
99- isShowCssEditor: displayStore .isShowCssEditor ,
100- isShowInsertFormDialog: displayStore .isShowInsertFormDialog ,
101- isShowUploadImgDialog: displayStore .isShowUploadImgDialog ,
102- isShowInsertMpCardDialog: displayStore .isShowInsertMpCardDialog ,
103- aiDialogVisible: displayStore .aiDialogVisible ,
104- aiImageDialogVisible: displayStore .aiImageDialogVisible ,
97+ isShowCssEditor: uiStore .isShowCssEditor ,
98+ isShowInsertFormDialog: uiStore .isShowInsertFormDialog ,
99+ isShowUploadImgDialog: uiStore .isShowUploadImgDialog ,
100+ isShowInsertMpCardDialog: uiStore .isShowInsertMpCardDialog ,
101+ aiDialogVisible: uiStore .aiDialogVisible ,
102+ aiImageDialogVisible: uiStore .aiImageDialogVisible ,
105103 }
106104}
107105
@@ -309,17 +307,17 @@ function applyImportedConfig() {
309307
310308 // Display store 的状态
311309 else if (key === ` isShowCssEditor ` )
312- displayStore .isShowCssEditor = value
310+ uiStore .isShowCssEditor = value
313311 else if (key === ` isShowInsertFormDialog ` )
314- displayStore .isShowInsertFormDialog = value
312+ uiStore .isShowInsertFormDialog = value
315313 else if (key === ` isShowUploadImgDialog ` )
316- displayStore .isShowUploadImgDialog = value
314+ uiStore .isShowUploadImgDialog = value
317315 else if (key === ` isShowInsertMpCardDialog ` )
318- displayStore .isShowInsertMpCardDialog = value
316+ uiStore .isShowInsertMpCardDialog = value
319317 else if (key === ` aiDialogVisible ` )
320- displayStore .aiDialogVisible = value
318+ uiStore .aiDialogVisible = value
321319 else if (key === ` aiImageDialogVisible ` )
322- displayStore .aiImageDialogVisible = value
320+ uiStore .aiImageDialogVisible = value
323321 }
324322 })
325323
0 commit comments