feat(admin): open SEO/GEO defaults and clarify indexable pages

Align the MindSpace config UI with public-online indexing, add a one-click enable action, and document that 可收录 means public and unexpired.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-13 15:51:48 +08:00
parent c79e1b7a35
commit 66dd288015
2 changed files with 18 additions and 10 deletions
+17 -9
View File
@@ -4,18 +4,18 @@ import type { MindSpaceAdminConfig, MindSpaceSeoGeoConfig } from '../../types';
function defaultSeoGeoConfig(): MindSpaceSeoGeoConfig {
return {
enabled: false,
enabled: true,
seo: {
enabled: false,
enabled: true,
canonical: true,
sitemap: false,
robotsTxt: false,
baiduPush: false,
sitemap: true,
robotsTxt: true,
baiduPush: true,
},
geo: {
enabled: false,
jsonLd: false,
llmsTxt: false,
enabled: true,
jsonLd: true,
llmsTxt: true,
},
};
}
@@ -122,7 +122,7 @@ export function MindSpacePage() {
<section className="admin-card">
<h2>SEO / GEO</h2>
<p className="muted">
access_mode=publicstatus=online noindex sitemap / llms.txt
线 SEO/GEO noindex sitemap / llms.txt
</p>
<div className="admin-form">
<label className="admin-form-row">
@@ -203,6 +203,14 @@ export function MindSpacePage() {
<button type="submit" className="send-btn" disabled={busy || loading}>
{busy ? '保存中...' : '保存配置'}
</button>
<button
type="button"
className="ghost-btn"
onClick={() => setSeoGeo(defaultSeoGeoConfig())}
disabled={busy || loading}
>
</button>
<button type="button" className="ghost-btn" onClick={() => void load()} disabled={busy}>
</button>
+1 -1
View File
@@ -127,7 +127,7 @@ export function SeoGeoAnalyticsPage() {
<div className="admin-page-head">
<h2>SEO / GEO </h2>
<p className="muted">
线 URL访SEO / GEO referrer User-Agent
线 URL访 = SEO / GEO referrer User-Agent
</p>
</div>