fix(docs): redirect to target lang show 404

This commit is contained in:
Jacky 2024-02-24 18:40:11 +08:00
parent 9ed10d65ba
commit 0a24469248
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ onMounted(async () => {
&& locales[language]
&& !route.path.includes(language)
) {
await router.go(language + '/' + route.path)
await router.go(language + (route.path !== '/' ? route.path : ''))
}
})
</script>