🐛 修复显示

This commit is contained in:
刘嘉伟 2024-12-05 10:56:19 +08:00
parent 2581caa9e3
commit e2a01325f4
2 changed files with 43 additions and 40 deletions

View File

@ -1,8 +1,8 @@
@import "reset"; @use "reset";
@import "layout"; @use "layout";
@import "element"; @use "element";
@import "tailwind"; @use "tailwind";
@import "scrollbar"; @use "scrollbar";
/* 自定义全局 CssVar */ /* 自定义全局 CssVar */
:root { :root {
--pure-transition-duration: 0.016s; --pure-transition-duration: 0.016s;

View File

@ -450,6 +450,9 @@ const allowCopyAccessAddress = (proxy: Proxy) => {
if (proxy.type === "xtcp" && proxy.stcpModel === "visited") { if (proxy.type === "xtcp" && proxy.stcpModel === "visited") {
return false; return false;
} }
if (proxy.type === "sudp" && proxy.stcpModel === "visited") {
return false;
}
return true; return true;
}; };
@ -620,7 +623,7 @@ onUnmounted(() => {
class="mr-2" class="mr-2"
type="danger" type="danger"
size="small" size="small"
>已禁用 >已禁用
</el-tag> </el-tag>
<el-tag <el-tag
v-if=" v-if="
@ -641,7 +644,7 @@ onUnmounted(() => {
proxy.type === 'sudp') && proxy.type === 'sudp') &&
proxy.stcpModel === 'visited' proxy.stcpModel === 'visited'
" "
>被访问者 >被访问者
</el-tag> </el-tag>
<!-- <el-tag--> <!-- <el-tag-->
<!-- size="small"--> <!-- size="small"-->
@ -709,7 +712,7 @@ onUnmounted(() => {
<div <div
class="text-sm text-left" class="text-sm text-left"
v-if=" v-if="
(proxy.type !== 'stcp' && proxy.type !== 'xtcp') || (proxy.type !== 'stcp' && proxy.type !== 'xtcp' && proxy.type !== 'sudp') ||
proxy.stcpModel !== 'visitors' proxy.stcpModel !== 'visitors'
" "
> >
@ -724,7 +727,7 @@ onUnmounted(() => {
<div <div
class="text-sm text-center" class="text-sm text-center"
v-if=" v-if="
(proxy.type !== 'stcp' && proxy.type !== 'xtcp') || (proxy.type !== 'stcp' && proxy.type !== 'xtcp' && proxy.type !== 'sudp') ||
proxy.stcpModel !== 'visitors' proxy.stcpModel !== 'visitors'
" "
> >
@ -735,7 +738,7 @@ onUnmounted(() => {
<div <div
class="text-sm text-center" class="text-sm text-center"
v-if=" v-if="
(proxy.type === 'stcp' || proxy.type === 'xtcp') && (proxy.type === 'stcp' || proxy.type === 'xtcp' || proxy.type === 'sudp') &&
proxy.stcpModel === 'visitors' proxy.stcpModel === 'visitors'
" "
> >
@ -746,7 +749,7 @@ onUnmounted(() => {
<div <div
class="text-sm text-center" class="text-sm text-center"
v-if=" v-if="
(proxy.type === 'stcp' || proxy.type === 'xtcp') && (proxy.type === 'stcp' || proxy.type === 'xtcp' || proxy.type === 'sudp') &&
proxy.stcpModel === 'visitors' proxy.stcpModel === 'visitors'
" "
> >
@ -757,7 +760,7 @@ onUnmounted(() => {
<div <div
class="text-sm text-center" class="text-sm text-center"
v-if=" v-if="
(proxy.type === 'stcp' || proxy.type === 'xtcp') && (proxy.type === 'stcp' || proxy.type === 'xtcp' || proxy.type === 'sudp') &&
proxy.stcpModel === 'visitors' proxy.stcpModel === 'visitors'
" "
> >
@ -834,8 +837,8 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover" width="300"> <el-popover placement="top" trigger="hover" width="300">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>secretKey</span >secretKey</span
> >
只有访问者与被访问者共享密钥一致的用户才能访问该服务 只有访问者与被访问者共享密钥一致的用户才能访问该服务
</template> </template>
<template #reference> <template #reference>
@ -962,8 +965,8 @@ onUnmounted(() => {
> >
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>subdomain</span >subdomain</span
> >
</template> </template>
<template #reference> <template #reference>
<IconifyIconOffline <IconifyIconOffline
@ -1014,8 +1017,8 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover"> <el-popover placement="top" trigger="hover">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>customDomains</span >customDomains</span
> >
</template> </template>
<template #reference> <template #reference>
<IconifyIconOffline <IconifyIconOffline
@ -1105,21 +1108,21 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover" width="300"> <el-popover placement="top" trigger="hover" width="300">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>bindAddr</span >bindAddr</span
> >
要将被访问者的服务绑定到本地哪个<span 要将被访问者的服务绑定到本地哪个<span
class="font-black text-[#5A3DAA]" class="font-black text-[#5A3DAA]"
>IP</span >IP</span
> >
<br /> <br />
仅本机访问<span class="font-black text-[#5A3DAA]" 仅本机访问<span class="font-black text-[#5A3DAA]"
>127.0.0.1</span >127.0.0.1</span
> >
<br /> <br />
支持局域网其他设备访问<span 支持局域网其他设备访问<span
class="font-black text-[#5A3DAA]" class="font-black text-[#5A3DAA]"
>0.0.0.0</span >0.0.0.0</span
> >
<br /> <br />
</template> </template>
<template #reference> <template #reference>
@ -1151,12 +1154,12 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover" width="300"> <el-popover placement="top" trigger="hover" width="300">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>bindAddr</span >bindAddr</span
> >
要将被访问者的服务绑定到本地哪个<span 要将被访问者的服务绑定到本地哪个<span
class="font-black text-[#5A3DAA]" class="font-black text-[#5A3DAA]"
>端口</span >端口</span
> >
<br /> <br />
请自行确保端口未被占用 请自行确保端口未被占用
</template> </template>
@ -1194,8 +1197,8 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover" width="300"> <el-popover placement="top" trigger="hover" width="300">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>fallbackTo</span >fallbackTo</span
> >
<br /> <br />
xtcp 打洞失败会回退到使用 stcp-visitor 建立连接 xtcp 打洞失败会回退到使用 stcp-visitor 建立连接
</template> </template>
@ -1228,14 +1231,14 @@ onUnmounted(() => {
<el-popover placement="top" trigger="hover" width="300"> <el-popover placement="top" trigger="hover" width="300">
<template #default> <template #default>
对应参数<span class="font-black text-[#5A3DAA]" 对应参数<span class="font-black text-[#5A3DAA]"
>fallbackTimeoutMs</span >fallbackTimeoutMs</span
> >
<br /> <br />
xtcp 打洞时间超过该时间会回退到使用 stcp-visitor xtcp 打洞时间超过该时间会回退到使用 stcp-visitor
建立连接 单位<span 建立连接 单位<span
class="font-black text-[#5A3DAA]" class="font-black text-[#5A3DAA]"
>毫秒</span >毫秒</span
> >
</template> </template>
<template #reference> <template #reference>
<IconifyIconOffline <IconifyIconOffline