mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 09:52:53 +00:00
no message
This commit is contained in:
parent
f0e844c308
commit
fe0b8aed20
8
resources/assets/js/store/mutations.js
vendored
8
resources/assets/js/store/mutations.js
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user