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