From 4180cb25651125575ad9a886a39a0f74ae64c3e7 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Thu, 1 Apr 2021 18:39:11 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E6=B3=A8=E9=87=8A,=E7=BC=96=E8=BE=91=E5=99=A8=E5=8F=AF?= =?UTF-8?q?=E8=BF=BD=E8=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/domain/route.php | 1 + catch/login/route.php | 3 +++ catch/monitor/route.php | 2 ++ catch/permissions/route.php | 3 +++ catch/permissions/tables/Job.php | 4 ++-- catch/permissions/tables/Permission.php | 4 ++-- catch/sms/route.php | 2 ++ catch/system/route.php | 3 +++ catch/wechat/route.php | 2 ++ extend/catcher/command/stubs/route.stub | 2 ++ 10 files changed, 22 insertions(+), 4 deletions(-) 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');