master #16

Merged
shiran merged 7 commits from master into deploy 2026-01-01 03:30:10 +08:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 4ef208a662 - Show all commits
+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()
formData.append('name', name)
formData.append('group_buy_type', groupBuyType)
formData.append('name', data.name)
formData.append('group_buy_type_id', data.group_buy_type_id)
return http2.post('/api/v1/admin/activity/group_buy/add_random_group', formData, {
headers: {
'Content-Type': 'multipart/form-data'
+1
View File
@@ -292,6 +292,7 @@ const handleCreate = async () => {
await createFormRef.value.validate(async (valid) => {
if (valid) {
createLoading.value = true
console.log("队伍名称:",createForm.name)
try {
const res = await addRandomGroup({ name: createForm.name, group_buy_type_id: String(createForm.groupBuyTypeId) })
console.log('创建队伍响应:', res)