mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
perf: avoid reloading active config when editing inactive subscription
This commit is contained in:
@@ -469,9 +469,12 @@ const ProfilePage = () => {
|
||||
|
||||
<ProfileViewer
|
||||
ref={viewerRef}
|
||||
onChange={async () => {
|
||||
onChange={async (isActivating) => {
|
||||
mutateProfiles();
|
||||
await onEnhance(false);
|
||||
// 只有更改当前激活的配置时才触发全局重新加载
|
||||
if (isActivating) {
|
||||
await onEnhance(false);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<ConfigViewer ref={configRef} />
|
||||
|
||||
Reference in New Issue
Block a user