diff --git a/internal/web/actions/actionutils/parent_action.go b/internal/web/actions/actionutils/parent_action.go
index 9a2b9edb..fcc7c379 100644
--- a/internal/web/actions/actionutils/parent_action.go
+++ b/internal/web/actions/actionutils/parent_action.go
@@ -49,7 +49,11 @@ func (this *ParentAction) ErrorText(err string) {
}
func (this *ParentAction) NotFound(name string, itemId int64) {
- this.ErrorPage(errors.New(name + " id: '" + strconv.FormatInt(itemId, 10) + "' is not found"))
+ if itemId > 0 {
+ this.ErrorPage(errors.New(name + " id: '" + strconv.FormatInt(itemId, 10) + "' is not found"))
+ } else {
+ this.ErrorPage(errors.New(name + " is not found"))
+ }
}
func (this *ParentAction) NewPage(total int64, size ...int64) *Page {
diff --git a/web/public/js/components.js b/web/public/js/components.js
index 6cc0b52a..f1bfd71a 100644
--- a/web/public/js/components.js
+++ b/web/public/js/components.js
@@ -1183,7 +1183,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
支持普通域名(
支持普通域名(
只支持普通域名(
| 启用 | +启用内容压缩 |
@@ -3288,7 +3288,7 @@ example2.com
启用 |
+ 启用字符编码 |
|
@@ -3405,7 +3405,7 @@ example2.com
开启访问日志 |
+ 启用访问日志 |
- |
@@ -3975,7 +3975,7 @@ example2.com
是否开启静态资源分发 |
+ 启用静态资源分发 |
|
@@ -4046,7 +4046,7 @@ example2.com
启用 |
+ 启用WebP压缩 |
|
@@ -5123,7 +5123,7 @@ example2.com
`}),Vue.component("not-found-box",{props:["message"],template:`{{message}}
+ `}),Vue.component("warning-message",{template:''});let checkboxId=0,radioId=(Vue.component("checkbox",{props:["name","value","v-value","id","checked"],data:function(){checkboxId++;let e=this.id,t=(null==e&&(e="checkbox"+checkboxId),this.vValue),i=(null==t&&(t="1"),this.value);return null==i&&"checked"==this.checked&&(i=t),{elementId:e,elementValue:t,newValue:i}},methods:{change:function(){this.$emit("input",this.newValue)},check:function(){this.newValue=this.elementValue},uncheck:function(){this.newValue=""},isChecked:function(){return"boolean"==typeof this.newValue&&this.newValue||this.newValue==this.elementValue}},watch:{value:function(e){"boolean"==typeof e&&(this.newValue=e)}},template:`
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 34e37412..7bce80f2 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -3435,7 +3435,7 @@ Vue.component("http-stat-config-box", {
是否开启统计 |
+ 启用统计 |
|
@@ -6680,7 +6680,7 @@ Vue.component("http-websocket-box", {
启用配置 |
+ 启用Websocket |
- | 支持普通域名( 支持普通域名( 只支持普通域名( 启用 |
+ 启用内容压缩 |
|
@@ -9433,7 +9433,7 @@ Vue.component("http-charsets-box", {
启用 |
+ 启用字符编码 |
|
@@ -10064,7 +10064,7 @@ Vue.component("http-access-log-config-box", {
开启访问日志 |
+ 启用访问日志 |
- |
@@ -11447,7 +11447,7 @@ Vue.component("http-web-root-box", {
是否开启静态资源分发 |
+ 启用静态资源分发 |
|
@@ -11586,7 +11586,7 @@ Vue.component("http-webp-config-box", {
启用 |
+ 启用WebP压缩 |
|
@@ -15697,7 +15697,7 @@ Vue.component("checkbox", {
this.newValue = ""
},
isChecked: function () {
- return this.newValue == this.elementValue
+ return (typeof (this.newValue) == "boolean" && this.newValue) || this.newValue == this.elementValue
}
},
watch: {
|