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]: 后端返回VITE_SERVICE_MODAL_LOGOUT_CODES时,弹出模态title没有i18n #507

Closed
majinkai opened this issue Jun 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@majinkai
Copy link

软件版本

1.2.5

运行环境

MacOS

运行架构

AMD64

重现步骤

window.$dialog?.error({
  title: 'Error', // 没有i18n
  content: response.data.msg,
  positiveText: $t('common.confirm'),
  maskClosable: false,
  closeOnEsc: false,
  onPositiveClick() {
    logoutAndCleanup();
  },
  onClose() {
    logoutAndCleanup();
  }
});

期望的结果是什么?

i18n之后的输出

实际的结果是什么?

Error字符串

日志记录(可选)

No response

补充说明(可选)

No response

@Azir-11
Copy link
Member

Azir-11 commented Jun 18, 2024

如果这里在zh的情况下显示个“错误”,会不会有点怪怪的

@honghuangdc honghuangdc added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants