From d72db8b2222075dbb7c468027dedad51a790b173 Mon Sep 17 00:00:00 2001 From: ling <1042585959@qq.com> Date: Sat, 13 Apr 2024 22:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmodem=E5=9C=A8lede=E4=B8=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-modem/luasrc/model/cbi/modem/config.lua | 6 ++---- luci-app-modem/po/zh-cn/modem.po | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/luci-app-modem/luasrc/model/cbi/modem/config.lua b/luci-app-modem/luasrc/model/cbi/modem/config.lua index baccaa0..4a33c5d 100644 --- a/luci-app-modem/luasrc/model/cbi/modem/config.lua +++ b/luci-app-modem/luasrc/model/cbi/modem/config.lua @@ -66,11 +66,9 @@ getMobileNetwork() --------advanced-------- -- 配置ID -id = s:taboption("advanced", Value, "id", translate("Config ID")) -id.default = arg[1] +id = s:taboption("advanced", ListValue, "id", translate("Config ID")) id.rmempty = false -id.readonly = true -id.hidden = true +id:value(arg[1]) -- uci:set('modem',arg[1],'id',arg[1]) -- 拨号工具 diff --git a/luci-app-modem/po/zh-cn/modem.po b/luci-app-modem/po/zh-cn/modem.po index 036433f..7e89532 100644 --- a/luci-app-modem/po/zh-cn/modem.po +++ b/luci-app-modem/po/zh-cn/modem.po @@ -191,7 +191,7 @@ msgid "Only display the modes available for the adaptation modem" msgstr "仅显示适配模组可用的拨号模式" msgid "Config ID" -msgstr "配置ID" +msgstr "配置 ID" msgid "Dial Tool" msgstr "拨号工具"