minor
This commit is contained in:
parent
98f6b9618c
commit
87dd179122
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ export default async (context, locale) => {
|
|||
if (process.server) {
|
||||
return context.$axios.$get(`locale/${locale}`)
|
||||
} else {
|
||||
// cannot use $axios here as plugins have not yet been loaded
|
||||
return fetch(`${window.location.origin}/api/locale/${locale}`).then(ret => ret.json())
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue