代码提交

This commit is contained in:
wong
2025-12-03 16:29:40 +08:00
parent 5bb5aa3d5a
commit 58377b4670

View File

@@ -271,19 +271,42 @@ const PlanApi: React.FC<PlanApiProps> = ({
); );
}; };
const renderDocsTab = () => ( const renderDocsTab = () => {
<div className={style["docs-content"]}> const docUrl = `${import.meta.env.VITE_API_BASE_URL}/doc/api_v1.md`;
<div className={style["docs-grid"]}>
<Card className={style["doc-card"]}> return (
<div className={style["doc-icon"]}> <div className={style["docs-content"]}>
<BookOutlined /> <div className={style["docs-grid"]}>
</div> <Card className={style["doc-card"]}>
<h4>线V1</h4> <div className={style["doc-icon"]}>
<p></p> <BookOutlined />
</Card> </div>
<h4>线V1</h4>
<p></p>
<div className={style["doc-actions"]}>
<Button
size="small"
onClick={() => {
window.open(docUrl, "_blank");
}}
className={style["doc-open-btn"]}
>
</Button>
<Button
size="small"
onClick={() => handleCopy(docUrl, "文档链接")}
className={style["doc-copy-btn"]}
>
<CopyOutlined />
</Button>
</div>
</Card>
</div>
</div> </div>
</div> );
); };
const renderCodeTab = () => { const renderCodeTab = () => {
const codeExamples = { const codeExamples = {