mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 01:45:13 +08:00
This commit is contained in:
1 parent
74fb8aab69
commit
d733dbc21e
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"
|
local http = require "luci.http"
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
-- 1. 注册 admin/index 为纯路由跳板(无 title,不占菜单)
|
entry({"admin", "index"}, call("landing_page"), _("Home") , 0).dependent = false
|
||||||
entry({"admin", "index"}, call("landing_page")).dependent = false
|
|
||||||
|
|
||||||
-- 2. 核心:直接改写 admin 根节点的调度目标
|
-- 2. 核心:直接改写 admin 根节点的调度目标
|
||||||
-- 这样当用户访问 /admin、登录后跳转或访问根目录时,无需经过 firstchild(),直接执行 landing_page()
|
-- 这样当用户访问 /admin、登录后跳转或访问根目录时,无需经过 firstchild(),直接执行 landing_page()
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
|
|
||||||
|
msgid "Home"
|
||||||
|
msgstr "首页"
|
||||||
|
|
||||||
msgid "Setup Wizard"
|
msgid "Setup Wizard"
|
||||||
msgstr "快速设置向导"
|
msgstr "快速设置向导"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"admin/dashboard": {
|
"admin/dashboard": {
|
||||||
"title": "Dashboard",
|
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"action": {
|
"action": {
|
||||||
"type": "view",
|
"type": "view",
|
||||||
|
|||||||
Reference in new issue
Block a user