Commit 5ede839c authored by yaya's avatar yaya

feat:修改分类参数

parent 9b89c042
......@@ -10,7 +10,7 @@ export function detailGoods(params) {
export function editGoods(params) {
return request({
url: '/item/setCoin',
url: '/item/setItem',
method: 'post',
data: params
})
......
......@@ -331,8 +331,8 @@ export default {
this.goodsParams = response.data.data
this.goodsParams.isStd = response.data.data.isStd === true ? 1 : 0
if (this.goodsParams.cid) {
this.categoryIds = [this.goodsParams.cid]
if (this.goodsParams.categoryIds) {
this.categoryIds = this.goodsParams.categoryIds || []
}
if (response.data.data.images) {
this.goodsParams.images = response.data.data.images.split(';') || []
......@@ -527,6 +527,7 @@ export default {
// 分类结果
handleCategoryChange(value) {
this.goodsParams.cid = value[value.length - 1]
console.log('=====cid==', value)
},
// 上一个
handlePrevious() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment