This commit is contained in:
sa_10_0 2024-10-31 19:23:27 +08:00
parent 86fa12d792
commit 3f1c339634

View File

@ -134,9 +134,26 @@ const form = reactive({
region:'',//
festivalName:'',//
resource:'',//
label:[],//
label:'',//
desc:'',//
})
onMounted(()=>{
addProduct()
})
const addProduct = async () => {
const res = await myAxios.post('goods/add',{
name : form.name,
price : form.price,
inventory : form.quantity,
type: form.resource,
label : form.label,
intro : form.desc,
goodImage : file.url,
introDetail : file.url,
festivalOrder : form.festivalName
})
console.log(res.data)
}
// onMounted(() => {
// getProductInformation()
// })