From 9d858bbe2273fe43a9d3ea2f07169122f9162c8b Mon Sep 17 00:00:00 2001
From: hooray <304327508@qq.com>
Date: Thu, 2 Feb 2023 14:53:08 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E8=A7=A3=E5=86=B3eslint=E8=AD=A6?=
=?UTF-8?q?=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 1 -
src/api/index.ts | 2 +-
src/components/Editor/index.vue | 2 +-
src/layouts/components/AppSetting/index.vue | 1 -
src/layouts/components/Search/index.vue | 2 +-
src/layouts/components/Tools/index.vue | 3 ---
6 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 94ca62a6..832ad097 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -3,7 +3,6 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
import hotkeys from 'hotkeys-js'
import eventBus from './utils/eventBus'
import useSettingsStore from '@/store/modules/settings'
-import useMenuStore from '@/store/modules/menu'
const settingsStore = useSettingsStore()
diff --git a/src/api/index.ts b/src/api/index.ts
index 4b814c4f..2db4355d 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -16,7 +16,7 @@ const toLogin = () => {
}
const api = axios.create({
- baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL,
+ baseURL: import.meta.env.DEV && (import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL),
timeout: 1000 * 60,
responseType: 'json',
})
diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue
index d65ca28a..1be81c4a 100644
--- a/src/components/Editor/index.vue
+++ b/src/components/Editor/index.vue
@@ -59,7 +59,7 @@ const defaultSetting = ref({
'%H:%M:%S',
],
// https://www.tiny.cloud/docs/tinymce/6/file-image-upload/#images_upload_handler
- images_upload_handler: (blobInfo: any, progress: any) => new Promise((resolve, reject) => {
+ images_upload_handler: (blobInfo: any) => new Promise((resolve) => {
const img = `data:image/jpeg;base64,${blobInfo.base64()}`
resolve(img)
}),
diff --git a/src/layouts/components/AppSetting/index.vue b/src/layouts/components/AppSetting/index.vue
index 2fcd0c18..0632e4f6 100644
--- a/src/layouts/components/AppSetting/index.vue
+++ b/src/layouts/components/AppSetting/index.vue
@@ -1,7 +1,6 @@