mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
fix: 修复全局规则更改未记录
This commit is contained in:
12
src/file.ts
12
src/file.ts
@@ -534,13 +534,17 @@ export const updateReadMeMd = async (
|
|||||||
oldConfig.globalGroups,
|
oldConfig.globalGroups,
|
||||||
newConfig.globalGroups,
|
newConfig.globalGroups,
|
||||||
);
|
);
|
||||||
if (
|
|
||||||
|
// 计算全局差异的数量
|
||||||
|
const globalDiffCount =
|
||||||
globalDiffLog.addGlobalGroups.length +
|
globalDiffLog.addGlobalGroups.length +
|
||||||
globalDiffLog.changeGlobalGroups.length +
|
globalDiffLog.changeGlobalGroups.length +
|
||||||
globalDiffLog.removeGlobalGroups.length >
|
globalDiffLog.removeGlobalGroups.length;
|
||||||
0
|
|
||||||
) {
|
// 如果全局差异的数量大于 0,则将其添加到 globaldiffs 中,并增加 changeCount
|
||||||
|
if (globalDiffCount > 0) {
|
||||||
globaldiffs.push({ ...globalDiffLog });
|
globaldiffs.push({ ...globalDiffLog });
|
||||||
|
changeCount += globalDiffCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 遍历新配置中的每个应用程序
|
// 遍历新配置中的每个应用程序
|
||||||
|
|||||||
Reference in New Issue
Block a user