mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-05 16:56:22 +00:00
fix: 修复加载语言文件时的警告信息,确保错误信息正确输出
This commit is contained in:
@ -10,8 +10,7 @@ export default getRequestConfig(async () => {
|
|||||||
try {
|
try {
|
||||||
return (await import(`@/locales/${locale}.json`)).default;
|
return (await import(`@/locales/${locale}.json`)).default;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn();
|
console.warn(`Failed to load locale ${locale}:`, err);
|
||||||
(err)
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user