变更
This commit is contained in:
parent
86fa12d792
commit
3f1c339634
|
@ -134,9 +134,26 @@ const form = reactive({
|
||||||
region:'',//是否为限定
|
region:'',//是否为限定
|
||||||
festivalName:'',//节日名称
|
festivalName:'',//节日名称
|
||||||
resource:'',//类型
|
resource:'',//类型
|
||||||
label:[],//商品标签
|
label:'',//商品标签
|
||||||
desc:'',//详情描述
|
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(() => {
|
// onMounted(() => {
|
||||||
// getProductInformation()
|
// getProductInformation()
|
||||||
// })
|
// })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user