feat: 针对不同场景,配置2个不同的上传图片函数

This commit is contained in:
菲鸽
2024-05-03 14:26:00 +08:00
parent ae24b9d598
commit 6a6030642e
6 changed files with 96 additions and 5 deletions

6
src/env.d.ts vendored
View File

@@ -9,9 +9,15 @@ declare module '*.vue' {
}
interface ImportMetaEnv {
/** 网站标题,应用名称 */
readonly VITE_APP_TITLE: string
/** 服务端口号 */
readonly VITE_SERVER_PORT: string
/** 后台接口地址 */
readonly VITE_SERVER_BASEURL: string
/** 上传图片地址 */
readonly VITE_UPLOAD_BASEURL: string
/** 是否清除console */
readonly VITE_DELETE_CONSOLE: string
// 更多环境变量...
}