mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 10:33:54 +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}));
|
.map((app) => ({type: 'uninstall', id: app.id}));
|
||||||
state.microAppsInstalled.forEach((oldApp) => {
|
state.microAppsInstalled.forEach((oldApp) => {
|
||||||
const newApp = data.find((app) => app.id === oldApp.id);
|
const newApp = data.find((app) => app.id === oldApp.id);
|
||||||
if (newApp && oldApp.version !== newApp.version) {
|
if (newApp) {
|
||||||
updatedOrUninstalledApps.push({type: 'update', id: oldApp.id});
|
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;
|
state.microAppsInstalled = data;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user