Skip to content

Commit

Permalink
fix: 修复语言包组件判断逻辑错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 16, 2022
1 parent 5673231 commit 597390a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/locales/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ export const useLoadMessages = () => {
loadMessages(component as ComponentOptions, isLoading, locale, importArr);
return importArr;
}
if (options.__v_isVNode) {
loadMessages(options.type, isLoading, locale, importArr);
return importArr;
}
if (typeof options === 'object' && !loadComponentCache.has(options)) {
loadComponentCache.add(options);
if (options.__v_isVNode) {
loadMessages(options.type, isLoading, locale, importArr);
return importArr;
}
if ((<ComponentOptions>options).components) {
Object.values((<ComponentOptions>options).components!).forEach((component) => {
loadMessages(component as ComponentOptions, isLoading, locale, importArr);
Expand Down

0 comments on commit 597390a

Please sign in to comment.