Skip to content

Commit c9e4ddb

Browse files
committed
refactor: move computed above
1 parent 16926b4 commit c9e4ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/modal/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ router.beforeEach((to, from, next) => {
141141
const app = createApp({
142142
setup() {
143143
const route = useRoute()
144+
const historyState = computed(() => route.fullPath && window.history.state)
144145
const routeWithModal = computed(() => {
145146
if (historyState.value.backgroundView) {
146147
return router.resolve(
@@ -150,7 +151,6 @@ const app = createApp({
150151
return route
151152
}
152153
})
153-
const historyState = computed(() => route.fullPath && window.history.state)
154154

155155
return { route, routeWithModal, historyState, ...toRefs(route) }
156156
},

0 commit comments

Comments
 (0)