Skip to content

Commit

Permalink
修复判断是否编辑bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lphkxd committed Aug 25, 2021
1 parent 7bdc948 commit d888339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/HasApiCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait HasApiCreate
*/
public function _self_path()
{
return $this->form(true)->store();
return $this->form(false)->store();
}

/**
Expand All @@ -35,6 +35,6 @@ public function create()
{
$content = new Content();
//这里必须这样写
return $content->body($this->form())->className('m-10');
return $content->body($this->form(false))->className('m-10');
}
}

0 comments on commit d888339

Please sign in to comment.