From 368971db627c9323803be55a2666feca6eda114d Mon Sep 17 00:00:00 2001 From: xiaozzzi <42293085+xiaozzzi@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:12:39 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/src/views/article/ArticleTreeDocs.vue | 2 +- .../src/renderer/src/views/article/ArticleTreeWorkbench.vue | 1 - .../src/renderer/src/views/article/scripts/article.ts | 2 -- .../renderer/src/views/article/scripts/editor-preview-resize.ts | 2 +- .../src/renderer/src/views/picture/PictureViewerInfo.vue | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/blossom-editor/src/renderer/src/views/article/ArticleTreeDocs.vue b/blossom-editor/src/renderer/src/views/article/ArticleTreeDocs.vue index b60c517..9e945a8 100644 --- a/blossom-editor/src/renderer/src/views/article/ArticleTreeDocs.vue +++ b/blossom-editor/src/renderer/src/views/article/ArticleTreeDocs.vue @@ -241,7 +241,7 @@ import { useServerStore } from '@renderer/stores/server' import { useUserStore } from '@renderer/stores/user' import { useConfigStore } from '@renderer/stores/config' import { ref, provide, onBeforeUnmount, nextTick, computed } from 'vue' -import { ElMessage, ElMessageBox } from 'element-plus' +import { ElMessageBox } from 'element-plus' import type { MenuInstance } from 'element-plus' import { ArrowDownBold, ArrowRightBold } from '@element-plus/icons-vue' import { diff --git a/blossom-editor/src/renderer/src/views/article/ArticleTreeWorkbench.vue b/blossom-editor/src/renderer/src/views/article/ArticleTreeWorkbench.vue index a497169..a79c885 100644 --- a/blossom-editor/src/renderer/src/views/article/ArticleTreeWorkbench.vue +++ b/blossom-editor/src/renderer/src/views/article/ArticleTreeWorkbench.vue @@ -190,7 +190,6 @@ import { ref, nextTick, inject, onDeactivated } from 'vue' import { provideKeyCurArticleInfo, SortLevelColor } from '@renderer/views/doc/doc' import { openNewArticleReferenceWindow } from '@renderer/assets/utils/electron' -import { keymaps } from './scripts/editor-tools' import { useLifecycle } from '@renderer/scripts/lifecycle' import hotkeys from 'hotkeys-js' import ArticleInfo from './ArticleInfo.vue' diff --git a/blossom-editor/src/renderer/src/views/article/scripts/article.ts b/blossom-editor/src/renderer/src/views/article/scripts/article.ts index fa90fd3..d94c5ae 100644 --- a/blossom-editor/src/renderer/src/views/article/scripts/article.ts +++ b/blossom-editor/src/renderer/src/views/article/scripts/article.ts @@ -1,5 +1,3 @@ -import { isNull } from '@renderer/assets/utils/obj' - /** * 临时内容的 localStorage key */ diff --git a/blossom-editor/src/renderer/src/views/article/scripts/editor-preview-resize.ts b/blossom-editor/src/renderer/src/views/article/scripts/editor-preview-resize.ts index 951996a..5c1456f 100644 --- a/blossom-editor/src/renderer/src/views/article/scripts/editor-preview-resize.ts +++ b/blossom-editor/src/renderer/src/views/article/scripts/editor-preview-resize.ts @@ -1,4 +1,4 @@ -import { onBeforeUnmount, onMounted, ref, watchEffect } from 'vue' +import { onBeforeUnmount, onMounted, watchEffect } from 'vue' import type { Ref } from 'vue' import { Local } from '@renderer/assets/utils/storage' diff --git a/blossom-editor/src/renderer/src/views/picture/PictureViewerInfo.vue b/blossom-editor/src/renderer/src/views/picture/PictureViewerInfo.vue index b54adaa..a637f67 100644 --- a/blossom-editor/src/renderer/src/views/picture/PictureViewerInfo.vue +++ b/blossom-editor/src/renderer/src/views/picture/PictureViewerInfo.vue @@ -120,7 +120,7 @@ const deletePicture = () => { type: 'warning', icon: WarnTriangleFilled }).then(() => { - pictureDelApi({ id: picInfo.value.id, ignoreCheck: true }).then((_resp) => { + pictureDelApi({ id: picInfo.value!.id, ignoreCheck: true }).then((_resp) => { picCacheRefresh() closePicInfo() emits('saved')