mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-19 17:21:41 +03:00
Fix tabs
This commit is contained in:
parent
a52c6c5afc
commit
43ef4990f5
@ -19,18 +19,13 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
let tag = this.title;
|
||||||
return {
|
return {
|
||||||
tabID: "",
|
tabID: tag,
|
||||||
labelID: "",
|
labelID: tag + "-" + "label",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
beforeMount() {
|
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);
|
this.$parent.$data.children.push(this);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -28,7 +28,7 @@ title: 出站流量重定向
|
|||||||
|
|
||||||
<Tabs title="if-config">
|
<Tabs title="if-config">
|
||||||
|
|
||||||
<Tab title="fwmark">
|
<Tab title="fwmark1">
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[Interface]
|
[Interface]
|
||||||
@ -71,7 +71,7 @@ PostDown = ip -6 rule delete table main suppress_prefixlength 0
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab title="sendThrough">
|
<Tab title="sendThrough1">
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[Interface]
|
[Interface]
|
||||||
@ -140,7 +140,7 @@ lsmod | grep wireguard
|
|||||||
|
|
||||||
<Tabs title="xray-config">
|
<Tabs title="xray-config">
|
||||||
|
|
||||||
<Tab title="fwmark">
|
<Tab title="fwmark2">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -228,7 +228,7 @@ lsmod | grep wireguard
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab title="sendThrough">
|
<Tab title="sendThrough2">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -191,7 +191,7 @@ nftables 配置与 iptables 配置二选一,不可同时使用。
|
|||||||
|
|
||||||
<Tabs title="netfilter">
|
<Tabs title="netfilter">
|
||||||
|
|
||||||
<Tab title="nftables">
|
<Tab title="nftables1">
|
||||||
|
|
||||||
```nftables
|
```nftables
|
||||||
#!/usr/sbin/nft -f
|
#!/usr/sbin/nft -f
|
||||||
@ -239,7 +239,7 @@ table ip xray {
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab title="iptables">
|
<Tab title="iptables1">
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
iptables -t mangle -N XRAY
|
iptables -t mangle -N XRAY
|
||||||
@ -286,9 +286,9 @@ iptables -t mangle -A OUTPUT -j XRAY_SELF
|
|||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<Tabs title="netfilter">
|
<Tabs title="netfilter2">
|
||||||
|
|
||||||
<Tab title="nftables">
|
<Tab title="nftables2">
|
||||||
|
|
||||||
首先将已经编辑好的 nftables 配置文件移动到 `/etc` 目录下,并重命名为 `nftables.conf`。然后编辑 `/lib/systemd/system/nftables.service`。
|
首先将已经编辑好的 nftables 配置文件移动到 `/etc` 目录下,并重命名为 `nftables.conf`。然后编辑 `/lib/systemd/system/nftables.service`。
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ WantedBy=sysinit.target
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab title="iptables">
|
<Tab title="iptables2">
|
||||||
|
|
||||||
关于 iptables 的永久化,建议直接安装 `iptables-persistent`。
|
关于 iptables 的永久化,建议直接安装 `iptables-persistent`。
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user