Perf(PostChat): disable auto load content in 404 kind pages

This commit is contained in:
Cell
2024-12-24 19:20:06 +08:00
parent d3cb08f56f
commit 33a8861ec6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.17-036cbb41" -}}
{{- .Scratch.Set "version" "v0.3.17-d3cb08f5" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
+1 -1
View File
@@ -70,7 +70,7 @@
{{- with $chatConfig.blackDom -}}
{{- $blackDom = $blackDom | append . -}}
{{- end -}}
{{- $upLoadWeb := cond (.IsHome | or $password) false $chatConfig.upLoadWeb -}}
{{- $upLoadWeb := cond (.IsHome | or $password | or (eq .Kind "404")) false $chatConfig.upLoadWeb -}}
{{- $postChatConfig := dict
"userMode" $chatConfig.userMode
"defaultInput" $chatConfig.defaultInput