mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-27 02:42:51 +08:00
🍉 Sync 2026-09-21 06:35:14
This commit is contained in:
1 parent
9c62ac73bb
commit
1e082ed4ab
3 files changed
+4
-3
No files matched your search
@@ -4,8 +4,7 @@ local uci = luci.model.uci.cursor()
|
||||
local http = require "luci.http"
|
||||
|
||||
function index()
|
||||
-- 1. 注册 admin/index 为纯路由跳板(无 title,不占菜单)
|
||||
entry({"admin", "index"}, call("landing_page")).dependent = false
|
||||
entry({"admin", "index"}, call("landing_page"), _("Home") , 0).dependent = false
|
||||
|
||||
-- 2. 核心:直接改写 admin 根节点的调度目标
|
||||
-- 这样当用户访问 /admin、登录后跳转或访问根目录时,无需经过 firstchild(),直接执行 landing_page()
|
||||
|
||||
@@ -12,6 +12,9 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "首页"
|
||||
|
||||
msgid "Setup Wizard"
|
||||
msgstr "快速设置向导"
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"admin/dashboard": {
|
||||
"title": "Dashboard",
|
||||
"order": 1,
|
||||
"action": {
|
||||
"type": "view",
|
||||
|
||||
Reference in new issue
Block a user