fix: app upgrade should not overwrite the activation status of plugins (#1610)

Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1610
This commit is contained in:
sealday 2024-10-16 12:12:03 +08:00
parent 388172e098
commit 8ea5aabff4

View File

@ -191,9 +191,8 @@ export class PresetTachyBase extends Plugin {
}
}
const name = plugin[0];
const enabled = plugin[2];
const packageJson = await this.getPackageJson(name);
plugins.push({ name, packageName: packageJson.name, version: packageJson.version, enabled });
plugins.push({ name, packageName: packageJson.name, version: packageJson.version });
}
return plugins;
}