保存封面栏目文章的自定义模型不能即时刷新问题

This commit is contained in:
xierz 2020-12-11 15:43:52 +08:00
parent bf1499b969
commit 89b1081849
1 changed files with 12 additions and 10 deletions

View File

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