fix: 修复上传URL环境变量错误

This commit is contained in:
2026-05-25 19:03:01 +08:00
parent aaec31bf6f
commit dff04c21c9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import { adminApi } from '../../api'
const uploadUrl = import.meta.env.VITE_API_URL + '/upload'
const uploadUrl = import.meta.env.VITE_API_BASE_URL + '/upload'
const uploadHeaders = { Authorization: `Bearer ${localStorage.getItem('token')}` }
const articles = ref<any[]>([])
+1 -1
View File
@@ -111,7 +111,7 @@ import { Plus } from '@element-plus/icons-vue'
import { adminApi, productApi, articleApi, lotteryApi } from '../../api'
import { getImageUrl } from '../../utils/image'
const uploadUrl = import.meta.env.VITE_API_URL + '/upload'
const uploadUrl = import.meta.env.VITE_API_BASE_URL + '/upload'
const uploadHeaders = { Authorization: `Bearer ${localStorage.getItem('token')}` }
const banners = ref<any[]>([])