fix: 修复生产环境API地址 - 保留.env.production和修复Lotteries上传URL
This commit is contained in:
@@ -4,7 +4,6 @@ backend/*.db
|
||||
frontend/node_modules
|
||||
frontend/.env
|
||||
frontend/.env.local
|
||||
frontend/.env.production
|
||||
.git
|
||||
.github
|
||||
.gitea
|
||||
|
||||
@@ -159,7 +159,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 lotteries = ref<any[]>([])
|
||||
|
||||
Reference in New Issue
Block a user