|
@@ -166,7 +166,8 @@ export default {
|
|
|
this.$refs.addItem.validate((valid, items) => {
|
|
|
if (valid) {
|
|
|
this.addData.skuList = this.products
|
|
|
- addGoods(this.addData).then(res => {
|
|
|
+ const { description, ...rest } = this.addData
|
|
|
+ addGoods({...rest, ...{description: encodeURI(description) }}).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$message({
|
|
|
message: this.addData.goodsId ? '修改成功!' : '添加成功!',
|