diff --git a/docs/.vuepress/theme/components/Tab.vue b/docs/.vuepress/theme/components/Tab.vue index 14755daf0..7a4b2e7ea 100644 --- a/docs/.vuepress/theme/components/Tab.vue +++ b/docs/.vuepress/theme/components/Tab.vue @@ -19,18 +19,13 @@ export default defineComponent({ }, }, data() { + let tag = this.title; return { - tabID: "", - labelID: "", + tabID: tag, + labelID: tag + "-" + "label", }; }, beforeMount() { - let tag = "tab-" + Math.random().toString(36).substring(2); - this.tabID = tag; - this.labelID = tag + "-" + "label"; - - // Since Vue 3.0, we have no access to $children. - // So we need another approach to register our child components. this.$parent.$data.children.push(this); }, }); diff --git a/docs/document/level-2/redirect.md b/docs/document/level-2/redirect.md index 59f29e73f..d53f7ad84 100644 --- a/docs/document/level-2/redirect.md +++ b/docs/document/level-2/redirect.md @@ -28,7 +28,7 @@ title: 出站流量重定向 - + ```ini [Interface] @@ -71,7 +71,7 @@ PostDown = ip -6 rule delete table main suppress_prefixlength 0 - + ```ini [Interface] @@ -140,7 +140,7 @@ lsmod | grep wireguard - + ```json { @@ -228,7 +228,7 @@ lsmod | grep wireguard - + ```json { diff --git a/docs/document/level-2/tproxy.md b/docs/document/level-2/tproxy.md index ec8294946..f351bea25 100644 --- a/docs/document/level-2/tproxy.md +++ b/docs/document/level-2/tproxy.md @@ -191,7 +191,7 @@ nftables 配置与 iptables 配置二选一,不可同时使用。 - + ```nftables #!/usr/sbin/nft -f @@ -239,7 +239,7 @@ table ip xray { - + ```bash iptables -t mangle -N XRAY @@ -286,9 +286,9 @@ iptables -t mangle -A OUTPUT -j XRAY_SELF
- + - + 首先将已经编辑好的 nftables 配置文件移动到 `/etc` 目录下,并重命名为 `nftables.conf`。然后编辑 `/lib/systemd/system/nftables.service`。 @@ -319,7 +319,7 @@ WantedBy=sysinit.target - + 关于 iptables 的永久化,建议直接安装 `iptables-persistent`。