Skip to content

Commit 9937afa

Browse files
committed
fix: StepContent
1 parent bcfe55e commit 9937afa

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/cn/guides/10-deploy/01-deploy/01-non-production/00-deploying-local.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ SELECT
286286
287287
</StepContent>
288288
289-
<StepContent
289+
<StepContent number="2">
290290
291291
1. 配置一个管理员用户。您将使用此账户连接到 Databend。更多信息,请参阅[配置管理员用户](../../04-references/01-admin-users.md)。对于此示例,取消注释以下行以选择此账户:
292292
@@ -335,6 +335,7 @@ ps aux | grep databend
335335
eric 12789 0.0 0.0 408495808 1040 s003 U+ 2:16pm 0:00.00 grep databend
336336
eric 12781 0.0 0.5 408790416 38896 s003 S 2:15pm 0:00.05 bin/databend-query --config-file=configs/databend-query.toml
337337
eric 12776 0.0 0.3 408654368 24848 s003 S 2:15pm 0:00.06 bin/databend-meta --config-file=configs/databend-meta.toml
338+
338339
```
339340
340341
</StepContent>
@@ -381,4 +382,4 @@ SELECT
381382
部署 Databend 后,您可能需要了解以下主题:
382383
383384
- [加载 & 卸载数据](/guides/load-data):在 Databend 中管理数据导入/导出。
384-
- [可视化](/guides/visualize):将 Databend 与可视化工具集成以获取洞察。
385+
- [可视化](/guides/visualize):将 Databend 与可视化工具集成以获取洞察。

src/components/Steps/step-content.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ const StepContent: FC<IProps> = ({
2121
if (!title) {
2222
const h3 = wrapRef?.current?.getElementsByClassName("anchor")[0];
2323
if (number == -1 || number === "") {
24-
h3.setAttribute(
24+
h3?.setAttribute(
2525
"style",
2626
`position: absolute; top: ${
2727
number == -1 ? "-10px" : "22px"
2828
}; left: 20px; cursor: ${outLink ? "pointer" : ""};`
2929
);
3030
if (outLink) {
31-
h3.addEventListener("click", () => {
31+
h3?.addEventListener("click", () => {
3232
window.open(outLink, "_blank");
3333
});
3434
}
3535
} else {
36-
h3.setAttribute(
36+
h3?.setAttribute(
3737
"style",
3838
`position: absolute; top: ${number == 1 ? "0" : "30px"}; left: 20px`
3939
);

0 commit comments

Comments
 (0)