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