no message

This commit is contained in:
kuaifan 2025-11-28 22:09:55 +00:00
parent f0e844c308
commit fe0b8aed20

View File

@ -411,8 +411,12 @@ export default {
.map((app) => ({type: 'uninstall', id: app.id}));
state.microAppsInstalled.forEach((oldApp) => {
const newApp = data.find((app) => app.id === oldApp.id);
if (newApp && oldApp.version !== newApp.version) {
updatedOrUninstalledApps.push({type: 'update', id: oldApp.id});
if (newApp) {
if (oldApp.version !== newApp.version) {
updatedOrUninstalledApps.push({type: 'update', id: oldApp.id});
} else if (oldApp.install_at !== newApp.install_at) {
updatedOrUninstalledApps.push({type: 'reinstall', id: oldApp.id});
}
}
});
state.microAppsInstalled = data;