Commit 42d50e6b by wangql

修复场景&类目管理中新增类目没传场景名称的问题

1 parent 6b42e829
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
this.$refs.categoryForm.validate(valid => { this.$refs.categoryForm.validate(valid => {
if (valid) { if (valid) {
var params = deepClone(this.infoForm) var params = deepClone(this.infoForm)
params.sceneName = this.baseData.sceneTypeList.find(item => item.confId === params.sceneType).confLabel params.sceneName = this.baseData.sceneTypeList.find(item => item.confId === params.sceneType).confValue
if (this.categoryInfo && this.categoryInfo.id) { if (this.categoryInfo && this.categoryInfo.id) {
params.id = this.categoryInfo.id params.id = this.categoryInfo.id
editGoodsCategory(params).then(res => { editGoodsCategory(params).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!