From: Eduardo San Martin Morote Date: Wed, 9 Sep 2020 12:06:49 +0000 (+0200) Subject: refactor: move computed above X-Git-Tag: v4.0.0-beta.10~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9e4ddbf30b34aff7e2ed912fc9c41167e761e4a;p=thirdparty%2Fvuejs%2Frouter.git refactor: move computed above --- diff --git a/e2e/modal/index.ts b/e2e/modal/index.ts index f5c8a2ce..d230a41f 100644 --- a/e2e/modal/index.ts +++ b/e2e/modal/index.ts @@ -141,6 +141,7 @@ router.beforeEach((to, from, next) => { const app = createApp({ setup() { const route = useRoute() + const historyState = computed(() => route.fullPath && window.history.state) const routeWithModal = computed(() => { if (historyState.value.backgroundView) { return router.resolve( @@ -150,7 +151,6 @@ const app = createApp({ return route } }) - const historyState = computed(() => route.fullPath && window.history.state) return { route, routeWithModal, historyState, ...toRefs(route) } },