Make catalog and article landing pages editable

This commit is contained in:
2026-11-22 01:37:33 +08:00
parent 92354d7e4a
commit 02e8685bc2
31 changed files with 273 additions and 104 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ final class StudioController extends AdminController
$data['name'] = $this->input($request, 'name');
$data['slug'] = $this->input($request, 'slug');
try {
if (!$this->slug($data['slug']) || in_array($data['slug'], ['admin', 'assets', 'articles', 'home', 'services', 'network', 'news', 'main', 'favicon'], true)
if (!$this->slug($data['slug']) || in_array($data['slug'], ['admin', 'assets', 'home', 'network', 'news', 'main', 'favicon'], true)
|| $data['name'] === '' || mb_strlen($data['name']) > 100) {
throw new RuntimeException('请填写页面名称及可用的网址标识。');
}