fix:队伍名称修改对接
Build and Deploy Vue3 / build (push) Successful in 1m9s
Build and Deploy Vue3 / deploy (push) Successful in 10m59s

This commit is contained in:
2025-12-31 15:04:45 +08:00
parent f6dcec75d7
commit 4ef208a662
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -41,10 +41,10 @@ export const addRandomUser = (groupBuyId) => {
} }
/**创建随机伪人队伍 */ /**创建随机伪人队伍 */
export const addRandomGroup = (name, groupBuyType) => { export const addRandomGroup = (data) => {
const formData = new FormData() const formData = new FormData()
formData.append('name', name) formData.append('name', data.name)
formData.append('group_buy_type', groupBuyType) formData.append('group_buy_type_id', data.group_buy_type_id)
return http2.post('/api/v1/admin/activity/group_buy/add_random_group', formData, { return http2.post('/api/v1/admin/activity/group_buy/add_random_group', formData, {
headers: { headers: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
+1
View File
@@ -292,6 +292,7 @@ const handleCreate = async () => {
await createFormRef.value.validate(async (valid) => { await createFormRef.value.validate(async (valid) => {
if (valid) { if (valid) {
createLoading.value = true createLoading.value = true
console.log("队伍名称:",createForm.name)
try { try {
const res = await addRandomGroup({ name: createForm.name, group_buy_type_id: String(createForm.groupBuyTypeId) }) const res = await addRandomGroup({ name: createForm.name, group_buy_type_id: String(createForm.groupBuyTypeId) })
console.log('创建队伍响应:', res) console.log('创建队伍响应:', res)