Exercise 3.1 fully implemented

This commit is contained in:
2024-11-20 12:27:41 +01:00
parent cfc466b92e
commit 5eab947b8c
5 changed files with 34 additions and 16 deletions

View File

@@ -6,7 +6,8 @@ const router = useRouter()
const path = ref("https://www.eventmaster.com" + router.currentRoute.value.fullPath)
function navigate() {
router.replace({ path: path.value.substring(path.value.indexOf('.com') + 4) })
let newPath = path.value.substring(path.value.indexOf('.com') + 4)
router.push(newPath)
}
watch(() => router.currentRoute.value.fullPath, () => {