chore: fix lint issue (#848)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

移除未使用的导入和变量。

<img width="824" alt="image" src="https://user-images.githubusercontent.com/21301288/218025655-d5da2012-fe78-4bfe-9138-3015e97a25e4.png">

#### Does this PR introduce a user-facing change?


```release-note
None
```
pull/852/head
Ryan Wang 2023-02-13 11:44:26 +08:00 committed by GitHub
parent 7320aa1592
commit 047e221ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -300,7 +300,7 @@ const editor = useEditor({
} }
return false; return false;
}, },
handlePaste: (view, event: ClipboardEvent, slice) => { handlePaste: (view, event: ClipboardEvent) => {
const images = Array.from(event.clipboardData?.items || []) const images = Array.from(event.clipboardData?.items || [])
.map((item) => { .map((item) => {
return item.getAsFile(); return item.getAsFile();

View File

@ -14,7 +14,6 @@ import {
import { markRaw, ref, type Component } from "vue"; import { markRaw, ref, type Component } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import ThemePreviewModal from "@/modules/interface/themes/components/preview/ThemePreviewModal.vue"; import ThemePreviewModal from "@/modules/interface/themes/components/preview/ThemePreviewModal.vue";
import { useUserStore } from "@/stores/user";
interface Action { interface Action {
icon: Component; icon: Component;