Nuxt/test/fixtures/encoding/layouts/default.vue
pooya parsa cc1f6d94b5
fix: handle route encoding (#8325)
Co-authored-by: farnabaz <farnabaz@users.noreply.github.com>
2020-11-30 23:10:02 +01:00

33 lines
534 B
Vue

<template>
<div>
<div>
<NLink to="/тест">
/тест
</NLink>
<NLink :to="encodeURI('/тест')">
/тест (encoded)
</NLink>
<br>
<NLink to="/тест?spa">
/тест (SPA)
</NLink>
<NLink :to="encodeURI('/тест?spa')">
/тест (SPA encoded)
</NLink>
</div>
<Nuxt />
</div>
</template>
<style scoped>
a {
color: grey;
text-decoration: none;
}
.nuxt-link-exact-active {
color: red;
font-weight: bold;
}
</style>