|
|
@@ -465,13 +465,14 @@ export default {
|
|
|
},
|
|
|
// 确认
|
|
|
confirmFn() {
|
|
|
+ console.log('11114')
|
|
|
if (this.$util.isEmpty(this.form.cover)) {
|
|
|
this.$msg("请上传图片")
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
this.form.cover = this.form.cover[0]
|
|
|
-
|
|
|
+console.log('11113')
|
|
|
let requestHost = addProduct
|
|
|
if(this.form.id && this.form.id != 0){
|
|
|
requestHost = updateProduct;
|
|
|
@@ -505,11 +506,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- let form = JSON.parse(JSON.stringify(this.form));
|
|
|
- form.cover = this.$util.imgSubstr(form.cover);
|
|
|
+ let form = JSON.parse(JSON.stringify(this.form))
|
|
|
requestHost({...form}).then(res => {
|
|
|
|
|
|
- this.$msg("操作成功!");
|
|
|
+ this.$msg("操作成功!")
|
|
|
|
|
|
//返回上一页带参数
|
|
|
let pages = getCurrentPages();
|