luci-app-mosdns: fix uci handleSaveApply issue in custom configuration mode

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2025-03-15 21:09:09 +08:00
parent 4bafe2875e
commit 2c0a056fd5
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-mosdns
PKG_VERSION:=1.6.10
PKG_VERSION:=1.6.11
PKG_RELEASE:=1
LUCI_TITLE:=LuCI Support for mosdns

View File

@ -411,7 +411,7 @@ return view.extend({
if (configeditor) {
var editorContent = configeditor.getValue();
if (editorContent === formvalue) {
return window.location.reload();
return;
}
return fs.write('/etc/mosdns/config_custom.yaml', editorContent.trim().replace(/\r\n/g, '\n') + '\n')
.then(function (i) {