seo 检索开关

This commit is contained in:
ryan
2026-06-09 08:35:13 +08:00
parent b0023787c5
commit 2ae55da52e
16 changed files with 163 additions and 5 deletions
+6
View File
@@ -218,6 +218,12 @@ func seedDefaultConfigs(t *testing.T, tx *gorm.DB) {
Type: "system",
Description: "目录显示配置(JSON 字符串,格式为 {url: enabled})",
},
{
Key: model.ConfigKeySearchEngineIndexingEnabled,
Value: "false",
Type: "system",
Description: "是否允许搜索引擎检索",
},
}
if err := tx.Create(&defaultConfigs).Error; err != nil {