Merge pull request 'page_migrate增加返回值' (#106) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
commit
7e7b8407f2
|
@ -127,7 +127,10 @@ class ProjectsController < ApplicationController
|
||||||
page = Page.new page_site_params
|
page = Page.new page_site_params
|
||||||
page.user = current_user
|
page.user = current_user
|
||||||
page.project = @project
|
page.project = @project
|
||||||
page.save
|
end
|
||||||
|
|
||||||
|
if page.save
|
||||||
|
render json: page
|
||||||
end
|
end
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
uid_logger_error(e.message)
|
uid_logger_error(e.message)
|
||||||
|
|
Loading…
Reference in New Issue