From c9e4ddbf30b34aff7e2ed912fc9c41167e761e4a Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 9 Sep 2020 14:06:49 +0200 Subject: [PATCH] refactor: move computed above --- e2e/modal/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }, -- 2.47.2