Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: i18n反复切换异常 #4191

Closed
5 tasks done
Zhao-sj opened this issue Aug 19, 2024 · 3 comments · Fixed by #4205
Closed
5 tasks done

Bug: i18n反复切换异常 #4191

Zhao-sj opened this issue Aug 19, 2024 · 3 comments · Fixed by #4205
Assignees
Labels
bug Something isn't working

Comments

@Zhao-sj
Copy link
Contributor

Zhao-sj commented Aug 19, 2024

Version

Vben Admin V5

Describe the bug?

在使用组件库element-plus时多次切换语言,只有第一次会生效,之后的切换则没有效果,好像是提供loadMessages只有第一次加载时才会执行

Reproduction

在使用组件库element-plus时多次切换语言,只有第一次会生效,之后的切换则没有效果,好像是提供loadMessages只有第一次加载时才会执行

System Info

System:
    OS: Windows 11 22631.3880
    CPU: 13th Gen Intel(R) Core(TM) i9-13900H   2.60 GHz
    Memory: 21.3 GB / 32.0 GB
  Binaries:
    Node: 20.16.0 - D:\Application\nodejs\node.exe
    npm: 10.8.1 - D:\Application\nodejs\npm.cmd
    pnpm: 9.6.0 - D:\Application\nodejs\pnpm.cmd
  Browsers:
    Chrome: 127.0.6533.120

Relevant log output

No response

Validations

@likui628
Copy link
Collaborator

antdv的版本有问题吗

@Zhao-sj
Copy link
Contributor Author

Zhao-sj commented Aug 19, 2024

antdv的版本有问题吗
使用这种注册的应该都有问题吧,只有第一次切换才会触发响应式,后续切换这个函数都不执行了,可以试试用组件库的日期时间组件后切换查看
image

@likui628 likui628 added bug Something isn't working and removed bug: pending triage labels Aug 19, 2024
@likui628 likui628 self-assigned this Aug 19, 2024
@likui628
Copy link
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants