diff --git a/catch/domain/route.php b/catch/domain/route.php index 59cb332..623e33e 100644 --- a/catch/domain/route.php +++ b/catch/domain/route.php @@ -8,6 +8,7 @@ // +---------------------------------------------------------------------- // | Author: JaguarJack [ njphper@gmail.com ] // +---------------------------------------------------------------------- +/* @var think\Route $router */ // you should use `$router` use catchAdmin\domain\controller\DomainRecord; diff --git a/catch/login/route.php b/catch/login/route.php index 88956c9..abcbcfa 100644 --- a/catch/login/route.php +++ b/catch/login/route.php @@ -1,4 +1,7 @@ group(function () use ($router){ # 登入 $router->post('login', '\catchAdmin\login\controller\Index@login'); diff --git a/catch/monitor/route.php b/catch/monitor/route.php index 41068a4..c69661e 100644 --- a/catch/monitor/route.php +++ b/catch/monitor/route.php @@ -9,6 +9,8 @@ // | Author: JaguarJack [ njphper@gmail.com ] // +---------------------------------------------------------------------- +/* @var think\Route $router */ + // you should use `$router` $router->group('monitor', function () use ($router){ // crontab路由 diff --git a/catch/permissions/route.php b/catch/permissions/route.php index 2493ce6..7f482a3 100644 --- a/catch/permissions/route.php +++ b/catch/permissions/route.php @@ -1,4 +1,7 @@ group(function () use ($router){ // 角色 $router->resource('roles', '\catchAdmin\permissions\controller\Role'); diff --git a/catch/permissions/tables/Job.php b/catch/permissions/tables/Job.php index 72d3d7e..0706c99 100644 --- a/catch/permissions/tables/Job.php +++ b/catch/permissions/tables/Job.php @@ -20,8 +20,8 @@ class Job extends CatchTable HeaderItem::label('状态')->prop('status')->withSwitchComponent(), HeaderItem::label('创建时间')->prop('created_at'), HeaderItem::label('操作')->width(250)->actions([ - Actions::update(), - Actions::delete() + Actions::update(''), + Actions::delete('') ]) ]) ->withActions([ diff --git a/catch/permissions/tables/Permission.php b/catch/permissions/tables/Permission.php index 1f752e8..d09c8b8 100644 --- a/catch/permissions/tables/Permission.php +++ b/catch/permissions/tables/Permission.php @@ -20,8 +20,8 @@ class Permission extends CatchTable HeaderItem::label('状态')->prop('hidden')->component('status'), HeaderItem::label('创建时间')->prop('created_at'), HeaderItem::label('操作')->width(250)->actions([ - Actions::update(), - Actions::delete() + Actions::update(''), + Actions::delete('') ]) ]) ->withActions([ diff --git a/catch/sms/route.php b/catch/sms/route.php index 08f5c3f..e60a6ef 100644 --- a/catch/sms/route.php +++ b/catch/sms/route.php @@ -9,6 +9,8 @@ // | Author: JaguarJack [ njphper@gmail.com ] // +---------------------------------------------------------------------- +/* @var think\Route $router */ + // you should use `$router` $router->group('sms', function () use ($router){ // config路由 diff --git a/catch/system/route.php b/catch/system/route.php index c3bf4d4..2cc4d6c 100644 --- a/catch/system/route.php +++ b/catch/system/route.php @@ -1,4 +1,7 @@ group(function () use ($router) { // 登录日志 $router->get('log/login', '\catchAdmin\system\controller\LoginLog@list'); diff --git a/catch/wechat/route.php b/catch/wechat/route.php index 86fd556..b19ad6b 100644 --- a/catch/wechat/route.php +++ b/catch/wechat/route.php @@ -9,6 +9,8 @@ * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt */ +/* @var think\Route $router */ + $router->group('wechat', function () use ($router){ // 公众号粉丝 $router->group('official/users', function () use ($router){ diff --git a/extend/catcher/command/stubs/route.stub b/extend/catcher/command/stubs/route.stub index d7d73d6..355c22e 100644 --- a/extend/catcher/command/stubs/route.stub +++ b/extend/catcher/command/stubs/route.stub @@ -10,6 +10,8 @@ // +---------------------------------------------------------------------- // you should use `$router` +/* @var think\Route $router */ + $router->group(function () use ($router){ })->middleware('auth');