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

This commit is contained in:
GoEdgeLab
2022-12-06 10:46:46 +08:00
parent dd03521da7
commit 0ef3075c92
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
}