优化代码

master
hequan_waynaqua 4 years ago
parent 6bffba6aa9
commit c928c722ae

@ -73,13 +73,11 @@ export default {
}
},
mounted() {
this.getDetail()
this.getGoodsDetail()
},
methods: {
getDetail() {
getDetail({
goodsId: this.goodsId
}).then((res) => {
getGoodsDetail() {
getDetail(this.goodsId).then((res) => {
const goods = res.map
this.goods = goods
this.info = goods.info

Loading…
Cancel
Save