update:更新路由注释,编辑器可追踪

This commit is contained in:
JaguarJack
2021-04-01 18:39:11 +08:00
parent dffad1e2c4
commit 4180cb2565
10 changed files with 22 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
<?php
/* @var think\Route $router */
$router->group(function () use ($router){
// 角色
$router->resource('roles', '\catchAdmin\permissions\controller\Role');

View File

@@ -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([

View File

@@ -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([