代码提交
This commit is contained in:
@@ -271,19 +271,42 @@ const PlanApi: React.FC<PlanApiProps> = ({
|
||||
);
|
||||
};
|
||||
|
||||
const renderDocsTab = () => (
|
||||
<div className={style["docs-content"]}>
|
||||
<div className={style["docs-grid"]}>
|
||||
<Card className={style["doc-card"]}>
|
||||
<div className={style["doc-icon"]}>
|
||||
<BookOutlined />
|
||||
</div>
|
||||
<h4>对外获客线索上报接口文档(V1)</h4>
|
||||
<p></p>
|
||||
</Card>
|
||||
const renderDocsTab = () => {
|
||||
const docUrl = `${import.meta.env.VITE_API_BASE_URL}/doc/api_v1.md`;
|
||||
|
||||
return (
|
||||
<div className={style["docs-content"]}>
|
||||
<div className={style["docs-grid"]}>
|
||||
<Card className={style["doc-card"]}>
|
||||
<div className={style["doc-icon"]}>
|
||||
<BookOutlined />
|
||||
</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>
|
||||
);
|
||||
);
|
||||
};
|
||||
|
||||
const renderCodeTab = () => {
|
||||
const codeExamples = {
|
||||
|
||||
Reference in New Issue
Block a user