mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
refactor: add loading component and demo
This commit is contained in:
@@ -26,6 +26,7 @@ export function useI18n(namespace?: string) {
|
||||
return {
|
||||
...methods,
|
||||
t: (key: string, ...arg: Parameters<typeof t>) => {
|
||||
if (!key) return '';
|
||||
return t(getKey(key), ...arg);
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user