mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
perf: 删除无用代码
This commit is contained in:
parent
88830ef015
commit
368971db62
@ -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 {
|
||||
|
@ -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'
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { isNull } from '@renderer/assets/utils/obj'
|
||||
|
||||
/**
|
||||
* 临时内容的 localStorage key
|
||||
*/
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user