Commit 375271f9 by 赵增煜

禁用详情页的删除编辑按钮

parent bf1f5353
...@@ -116,6 +116,10 @@ protected function detail($id) ...@@ -116,6 +116,10 @@ protected function detail($id)
$show->field('dispenser'); $show->field('dispenser');
$show->field('created_at'); $show->field('created_at');
$show->field('updated_at'); $show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableEdit();
$tools->disableDelete(); // 禁止删除按钮
});
}); });
} }
......
...@@ -131,6 +131,10 @@ protected function detail($id) ...@@ -131,6 +131,10 @@ protected function detail($id)
$show->field('dispenser'); $show->field('dispenser');
$show->field('created_at'); $show->field('created_at');
$show->field('updated_at'); $show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableEdit();
$tools->disableDelete(); // 禁止删除按钮
});
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment