|
|
|
@ -391,29 +391,31 @@ |
|
|
|
that.model.form.linkId = data.data.id; |
|
|
|
that.model.form.linkId = data.data.id; |
|
|
|
that.model.save(); |
|
|
|
that.model.save(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.$notify({ |
|
|
|
that.$notify({ |
|
|
|
title: '成功', |
|
|
|
title: '成功', |
|
|
|
message: '保存成功', |
|
|
|
message: '保存成功', |
|
|
|
type: 'success' |
|
|
|
type: 'success', |
|
|
|
|
|
|
|
duration: 1000, |
|
|
|
|
|
|
|
onClose: function () { |
|
|
|
|
|
|
|
if (that.returnIsShow) { |
|
|
|
|
|
|
|
javascript: history.go(-1); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
//如果是顶级封面或封面,则重新加载,避免文章和自定义模型重复保存 |
|
|
|
|
|
|
|
location.reload(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
that.saveDisabled = false; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (that.returnIsShow) { |
|
|
|
|
|
|
|
javascript: history.go(-1); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
//如果是顶级封面或封面,则重新拿到当前封面id,避免重复保存 |
|
|
|
|
|
|
|
that.list(that.form.categoryId); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
that.$notify({ |
|
|
|
that.$notify({ |
|
|
|
title: '失败', |
|
|
|
title: '失败', |
|
|
|
message: data.msg, |
|
|
|
message: data.msg, |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
that.saveDisabled = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
that.saveDisabled = false; |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
_this.activeName = 'form'; |
|
|
|
_this.activeName = 'form'; |
|
|
|
|