feat: 上传封面图

This commit is contained in:
2025-09-03 22:59:04 +08:00
parent c54af2a4b3
commit 1e9b40c208
4 changed files with 47 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ class HttpService {
// 构建完整URL
private buildUrl(url: string, params?: Record<string, any>): string {
const fullUrl = url.startsWith('http') ? url : `${this.baseURL}${url}`
const fullUrl = url.startsWith('http') ? url : `${this.baseURL}${url.startsWith('/') ? url.slice(1) : url}`
if (params) {
const searchParams = new URLSearchParams()