fix: 修复上传URL环境变量错误
This commit is contained in:
@@ -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[]>([])
|
||||
|
||||
Reference in New Issue
Block a user