defineI18nLocale prints in the method, twice on the server and twice on the server #3540
Unanswered
liangtingtings
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
export default defineI18nLocale(locale => {
console.log(111)
return $fetch(
https://your-company-product/api/${locale}
)})
打印的111,服务端打了2次,客户端2次,总共4次,新版本nuxt3.16.2 "@nuxtjs/i18n": "^9.5.3"
Beta Was this translation helpful? Give feedback.
All reactions