fix(editor): Fix route component caching, incorrect use of array reduce method and enable WF history feature (#7434)

Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
Csaba Tuncsik
2023-10-26 20:47:42 +02:00
committed by GitHub
parent ae616f146b
commit 12a89e6d14
13 changed files with 211 additions and 23 deletions

View File

@@ -20,9 +20,10 @@
</div>
<div id="content" :class="$style.content">
<router-view v-slot="{ Component }">
<keep-alive include="NodeView" :max="1">
<keep-alive v-if="$route.meta.keepWorkflowAlive" include="NodeView" :max="1">
<component :is="Component" />
</keep-alive>
<component v-else :is="Component" />
</router-view>
</div>
<Modals />
@@ -257,7 +258,7 @@ export default defineComponent({
void this.postAuthenticate();
}
},
async $route(route) {
async $route() {
await this.initSettings();
await this.redirectIfNecessary();