Skip to content

Commit 914011e

Browse files
committed
修复编辑商品bug
1 parent 4d517d7 commit 914011e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/DialogAddCategory.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
width="400px"
66
>
77
<el-form :model="ruleForm" :rules="rules" ref="formRef" label-width="100px" class="good-form">
8-
<el-form-item label="商品名称" prop="name">
8+
<el-form-item label="分类名称" prop="name">
99
<el-input type="text" v-model="ruleForm.name"></el-input>
1010
</el-form-item>
1111
<el-form-item label="排序值" prop="rank">

src/views/AddGood.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ export default {
174174
stockNum: goods.stockNum,
175175
goodsSellStatus: String(goods.goodsSellStatus),
176176
goodsCoverImg: proxy.$filters.prefix(goods.goodsCoverImg),
177-
tag: goods.tag
177+
tag: goods.tag,
178+
categoryId: goods.goodsCategoryId
178179
}
179180
state.categoryId = goods.goodsCategoryId
180181
state.defaultCate = `${firstCategory.categoryName}/${secondCategory.categoryName}/${thirdCategory.categoryName}`

0 commit comments

Comments
 (0)