From 2b94046716f28ffb221ce20c7b1faf056c27ddd3 Mon Sep 17 00:00:00 2001 From: vernesong <42875168+vernesong@users.noreply.github.com> Date: Sun, 19 Nov 2023 13:19:14 +0800 Subject: [PATCH] chore: refine --- .../luasrc/model/cbi/openclash/config.lua | 3 +-- .../luasrc/view/openclash/dvalue.htm | 20 +++++++++---------- .../luasrc/view/openclash/upload.htm | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/luci-app-openclash/luasrc/model/cbi/openclash/config.lua b/luci-app-openclash/luasrc/model/cbi/openclash/config.lua index 533763c95d..8ad341719d 100644 --- a/luci-app-openclash/luasrc/model/cbi/openclash/config.lua +++ b/luci-app-openclash/luasrc/model/cbi/openclash/config.lua @@ -159,8 +159,7 @@ HTTP.setfilehandler( ) if HTTP.formvalue("upload") then - local f = HTTP.formvalue("ulfile") - if #f <= 0 then + if not um.value then um.value = translate("No Specify Upload File") end end diff --git a/luci-app-openclash/luasrc/view/openclash/dvalue.htm b/luci-app-openclash/luasrc/view/openclash/dvalue.htm index 83ef64e60e..79d15e6357 100644 --- a/luci-app-openclash/luasrc/view/openclash/dvalue.htm +++ b/luci-app-openclash/luasrc/view/openclash/dvalue.htm @@ -1,13 +1,13 @@ <%+cbi/valueheader%> -