修复自定义页面可能无法保存的问题

This commit is contained in:
GoEdgeLab
2023-07-31 09:38:28 +08:00
parent 53592d3b48
commit 26d8c02d5d

View File

@@ -105,7 +105,7 @@ func (this *IndexAction) RunPost(params struct {
return
}
if !urlReg.MatchString(shutdownConfig.URL) {
if shutdownConfig.IsOn /** 只有启用的时候才校验 **/ && !urlReg.MatchString(shutdownConfig.URL) {
this.Fail("临时关闭页面中 '" + shutdownConfig.URL + "' 不是一个正确的URL请进行修改")
return
}