Inject native router only in reactive scopes (#1730)

This commit is contained in:
Sasha Sorokin
2024-06-15 14:27:38 +02:00
committed by GitHub
parent 61fd6f1741
commit bd49d6bd89
12 changed files with 17 additions and 21 deletions

View File

@@ -118,6 +118,8 @@ useHead({
const app = useNuxtApp()
const router = useRouter()
const now = app.$dayjs()
const TIME_24H = 86400000
const TIME_48H = TIME_24H * 2
@@ -195,8 +197,6 @@ if (projects.value) {
}
}
async function goToProjects() {
const router = useRouter()
const project = projectsFiltered.value[0]
await router.push({
name: 'type-id',