Skip to content

Commit

Permalink
fix(PC): 创建话题时如果开启了审核则提示话题审核中
Browse files Browse the repository at this point in the history
issue zhiyicx/plus-component-pc#1123
  • Loading branch information
mutoe committed Nov 26, 2018
1 parent b3c9980 commit e7831d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function onSubmit(event) {
var formData = $('.ev-form-create-topic').serialize();
axios.post("{{ url('/api/v2/feed/topics') }}", formData, { validatStatus: s => s === 200 })
.then(function(res) {
if (res.data.need_review) return noticebox('创建成功,等待审核', 1, '/topic')
location.href = res.data.id;
})
.catch(function(error) {
Expand Down

0 comments on commit e7831d4

Please sign in to comment.