Update App.jsx via upload script - 2026-08-01 18:43:23
This commit is contained in:
parent
dec748931a
commit
e8b80c802d
8
App.jsx
8
App.jsx
|
|
@ -4412,6 +4412,14 @@ function JmsPage({ lines, onSave, onDelete, onCheck, onNotify, dragIdx, onDragSt
|
|||
}
|
||||
}
|
||||
|
||||
// 打开线路管理页面时自动解析所有线路当前DNS IP(只对还没解析过的线路发请求,
|
||||
// 避免拖拽排序等操作触发的重渲染重复请求已解析过的域名)
|
||||
useEffect(() => {
|
||||
lines.forEach(line => {
|
||||
if (!(line.id in ipMap)) refreshIp(line.id, line.addr);
|
||||
});
|
||||
}, [lines]);
|
||||
|
||||
function copyLink(line) {
|
||||
const link = jmsBuildLink(line);
|
||||
navigator.clipboard.writeText(link).then(() => onNotify('订阅链接已复制')).catch(() => onNotify('复制失败,请手动选择'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue