|
@@ -83,8 +83,10 @@ export default {
|
|
if (this.id) {
|
|
if (this.id) {
|
|
const res = await this.fetch(this.id);
|
|
const res = await this.fetch(this.id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
|
|
+ // 商品
|
|
let arr = await this.goodsFetch(res.data.goods);
|
|
let arr = await this.goodsFetch(res.data.goods);
|
|
if (this.$checkRes(arr)) this.goodsList.push(arr.data);
|
|
if (this.$checkRes(arr)) this.goodsList.push(arr.data);
|
|
|
|
+ // 规格
|
|
let aee = await this.specFetch(res.data.spec);
|
|
let aee = await this.specFetch(res.data.spec);
|
|
if (this.$checkRes(aee)) this.specList.push(aee.data);
|
|
if (this.$checkRes(aee)) this.specList.push(aee.data);
|
|
this.$set(this, `form`, res.data);
|
|
this.$set(this, `form`, res.data);
|