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