fix:队伍名称修改对接
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user