<% local XQSysUtil = require "xiaoqiang.util.XQSysUtil" local XQTopology = require("xiaoqiang.module.XQTopology") local homeUrl = '/' if XQSysUtil.getInitInfo() then homeUrl = luci.dispatcher.build_url("web", "home") end local XQFunction = require("xiaoqiang.common.XQFunction") local router_name = XQFunction.getRouterName() -- ap model local netMode = 0 local mode = XQFunction.getNetMode() if mode == "lanapmode" then netMode = 2 elseif mode == "wifiapmode" then netMode = 1 end local hardware = string.lower( XQSysUtil.getHardware() ) local features = require("xiaoqiang.XQFeatures").FEATURES local usbIsSupport = features["hardware"]["usb"] local showTopoLink = 0 local topo = XQTopology.topologicalGraph() local leafs = topo["leafs"] if leafs and #leafs > 0 then showTopoLink = 1 end %>

<%:小米路由器%>

<%if (showTopoLink==1) then%> <%:查看完整网络%> <%end%> <%=router_name%>
<%if string.find(REQUEST_URI, "/setting") then%>
<%end%> <%if string.find(REQUEST_URI, "/apsetting") then%>
<%end%> <%if string.find(REQUEST_URI, "/prosetting") then%>
<%end%> <%if string.find(REQUEST_URI, "/store") then%> <%include("web/inc/storeheader")%> <%end%>