修复bug,设置router

This commit is contained in:
2020-03-28 12:18:58 +08:00
parent 671f66a0f0
commit c7a28d9530
8 changed files with 26 additions and 25 deletions

View File

@@ -6,7 +6,7 @@
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\http\validate\admin;
namespace app\http\validate;
use think\Validate;
@@ -26,11 +26,11 @@ class Config extends Validate{
];
protected $scene = [
'add' => ['title', 'name'],
'adminadd' => ['title', 'name'],
];
// edit 验证场景定义
public function sceneEdit() {
public function sceneAdminedit() {
return $this->only([['title', 'name']])
->remove('name', 'unique');
}