修复点击修改WAF规则时未保存时也会生效的Bug

This commit is contained in:
刘祥超
2022-12-06 10:46:46 +08:00
parent e9a47041fd
commit 892ee0013a
5 changed files with 19 additions and 5 deletions

View File

@@ -49,6 +49,10 @@ window.teaweb = {
}
return true;
},
clone: function (source) {
let s = JSON.stringify(source)
return JSON.parse(s)
},
loadJS: function (file, callback) {
let element = document.createElement("script")
@@ -940,7 +944,7 @@ window.teaweb = {
},
chartMap: {}, // dom id => chart
initChart: function (dom, cache) {
if (typeof(cache) != "boolean") {
if (typeof (cache) != "boolean") {
cache = true
}