diff --git a/src/components/context-menu/storage-menu.vue b/src/components/context-menu/storage-menu.vue index 6c3959f..397355e 100644 --- a/src/components/context-menu/storage-menu.vue +++ b/src/components/context-menu/storage-menu.vue @@ -40,7 +40,7 @@ v-if="showSubMenu && selectedLocation" :open="!!showSubMenu" :trigger="[]" - placement="rightTop" + placement="topRight" :get-popup-container="getSubMenuContainer" @open-change="handleSubMenuOpenChange" > diff --git a/src/services/http.ts b/src/services/http.ts index 7dc1708..d8aafe3 100644 --- a/src/services/http.ts +++ b/src/services/http.ts @@ -2,11 +2,11 @@ import { message } from 'ant-design-vue'; import axios, { type AxiosInstance, type AxiosRequestConfig } from 'axios'; // 创建HTTP实例 -const http: HttpInstance = axios.create({ +const http = (axios.create({ baseURL: import.meta.env.ENV_HTTP_BASE, adapter: 'fetch', timeout: 30_000, -}); +}) as unknown) as HttpInstance; // 添加FormData上传方法 http.postFormData = async (url: string, formData: FormData, config?: AxiosRequestConfig): Promise => {