mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 03:53:43 +08:00
fix: resolve rendering issue caused by duplicate node names
This commit is contained in:
parent
5e11d36972
commit
7d7c8988d7
@ -14,6 +14,7 @@
|
|||||||
- MacOS 托盘速率显示不全
|
- MacOS 托盘速率显示不全
|
||||||
- Linux 在系统服务模式下无法拉起 Mihomo 内核
|
- Linux 在系统服务模式下无法拉起 Mihomo 内核
|
||||||
- 使用异步操作,避免获取系统信息和切换代理模式可能带来的崩溃
|
- 使用异步操作,避免获取系统信息和切换代理模式可能带来的崩溃
|
||||||
|
- 相同节点名称可能导致的页面渲染出错
|
||||||
|
|
||||||
#### 新增了:
|
#### 新增了:
|
||||||
- Clash Verge Rev 从现在开始不再强依赖系统服务和管理权限
|
- Clash Verge Rev 从现在开始不再强依赖系统服务和管理权限
|
||||||
|
@ -567,14 +567,14 @@ export const CurrentProxyCard = () => {
|
|||||||
>
|
>
|
||||||
{isDirectMode
|
{isDirectMode
|
||||||
? null
|
? null
|
||||||
: proxyOptions.map((proxy) => {
|
: proxyOptions.map((proxy, index) => {
|
||||||
const delayValue = delayManager.getDelayFix(
|
const delayValue = delayManager.getDelayFix(
|
||||||
state.proxyData.records[proxy.name],
|
state.proxyData.records[proxy.name],
|
||||||
state.selection.group,
|
state.selection.group,
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
key={proxy.name}
|
key={`${proxy.name}-${index}`}
|
||||||
value={proxy.name}
|
value={proxy.name}
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -158,7 +158,7 @@ export const ProviderButton = () => {
|
|||||||
>
|
>
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
<Box display="flex" justifyContent="space-between" alignItems="center">
|
<Box display="flex" justifyContent="space-between" alignItems="center">
|
||||||
<Typography variant="h6">{t("Proxy Providers")}</Typography>
|
<Typography variant="h6">{t("Proxy Provider")}</Typography>
|
||||||
<Box>
|
<Box>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
@ -212,7 +212,6 @@ export const ProviderButton = () => {
|
|||||||
backgroundColor: bgcolor,
|
backgroundColor: bgcolor,
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: hoverColor,
|
backgroundColor: hoverColor,
|
||||||
borderColor: alpha(primary.main, 0.3)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -161,9 +161,9 @@ export const useRenderList = (mode: string) => {
|
|||||||
});
|
});
|
||||||
} else if (col > 1) {
|
} else if (col > 1) {
|
||||||
return ret.concat(
|
return ret.concat(
|
||||||
groupProxies(proxies, col).map((proxyCol) => ({
|
groupProxies(proxies, col).map((proxyCol, colIndex) => ({
|
||||||
type: 4,
|
type: 4,
|
||||||
key: `col-${group.name}-${proxyCol[0].name}`,
|
key: `col-${group.name}-${proxyCol[0].name}-${colIndex}`,
|
||||||
group,
|
group,
|
||||||
headState,
|
headState,
|
||||||
col,
|
col,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user