no message

This commit is contained in:
kuaifan
2025-05-28 20:36:13 +08:00
parent 0027e838a0
commit 46c8caa627
2 changed files with 9 additions and 4 deletions

View File

@@ -454,10 +454,15 @@ export default {
/**
* 关闭所有微应用
* @param destroy
*/
closeAllMicroApp() {
this.apps = [];
microApp.unmountAllApps({destroy: true})
closeAllMicroApp(destroy = true) {
this.apps.forEach(app => {
app.isOpen = false
if (destroy) {
microApp.unmountApp(app.name, {destroy: true})
}
});
},
/**