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

@ -5,8 +5,8 @@ on:
branches: branches:
- '*' - '*'
paths: paths:
- "**/*.js" - "app/**/*.js"
- "**/*.vue" - "app/**/*.vue"
- "app/package.json" - "app/package.json"
- "app/.env*" - "app/.env*"
- "**/*.go" - "**/*.go"

View file

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