perf: 删除无用代码

This commit is contained in:
xiaozzzi 2024-02-05 23:12:39 +08:00
parent 88830ef015
commit 368971db62
5 changed files with 3 additions and 6 deletions

View File

@ -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 {

View File

@ -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'

View File

@ -1,5 +1,3 @@
import { isNull } from '@renderer/assets/utils/obj'
/**
* localStorage key
*/

View File

@ -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'

View File

@ -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')