🤞 Sync 2026-09-30 23:44:05

This commit is contained in:
github-actions[bot] committed 2026-09-30 23:44:05 +08:00
1 parent e3fde93105
commit 44bb740ab2
206 files changed
+5736 -2799

No files matched your search

@@ -195,7 +195,7 @@ return view.extend({
{ tab: 'firmware', type: form.Flag, id: 'cookie_p', title: _('Persistent Cookie Session'), desc: _('Maintain persistent login sessions in the web browser.') },
{ tab: 'firmware', type: form.Flag, id: 'https', title: _('Enforce HTTPS Access'), desc: _('Automatically redirect HTTP requests to secure HTTPS.') },
{ tab: 'firmware', type: form.ListValue, id: 'landing_page', title: _('Landing Dashboard Mode'),
choices: { 'default': _('Default'), routerdog: _('RouterDog'), nas: _('NAS'), 'next-nas': _('Next-NAS'), router: _('Router') } }
choices: { 'default': _('Default'), 'dashboard': _('Dashboard'), routerdog: _('RouterDog'), nas: _('NAS'), 'next-nas': _('Next-NAS'), router: _('Router') } }
];
// 无线配置根据设备硬件动态追加
+6 -18
View File
@@ -14,20 +14,13 @@ function index()
end
end
local function check_wifi()
local has_wifi = false
pcall(function()
uci:foreach("wireless", "wifi-device", function(s)
has_wifi = true
return false -- 检测到任意 wifi-device 即终止遍历
end)
end)
return has_wifi
end
function landing_page()
local landing_page = uci:get("wizard", "default", "landing_page")
if (luci.sys.call("pgrep routergo >/dev/null") == 0 and landing_page == "routerdog") then
if (landing_page == "default") then
http.redirect(luci.dispatcher.build_url("admin","status","overview"))
elseif (landing_page == "dashboard") then
http.redirect(luci.dispatcher.build_url("admin","status","dashboard"))
elseif (luci.sys.call("pgrep routergo >/dev/null") == 0 and landing_page == "routerdog") then
http.redirect(luci.dispatcher.build_url("admin","routerdog"));
elseif luci.sys.call("pgrep quickstart >/dev/null") == 0 then
if landing_page == "nas" then
@@ -40,12 +33,7 @@ function landing_page()
http.redirect(luci.dispatcher.build_url("admin","quickstart"));
end
else
if check_wifi() then
-- 具备无线功能,跳转至常用无线仪表盘界面
http.redirect(luci.dispatcher.build_url("admin","status","dashboard"))
else
-- 无无线设备(纯有线环境),跳转至原生状态概览
http.redirect(luci.dispatcher.build_url("admin", "status", "overview"))
http.redirect(luci.dispatcher.build_url("admin", "status", "overview"))
end
end