Skip to content

Bug: 使用setTabTitle方法后,非活动页面标题无法跟随语言改变而改变。 #6170

@XiaoHeitu

Description

@XiaoHeitu

Version

Vben Admin V5

Describe the bug?

在打开多个页面后,进行语言切换时。 发现使用过setTabTitle方法的页面标题,无法跟随语言显示正确的标题。

Reproduction

1、假设页面A 使用了setTabTitle($t("PageA.Title"))
2、先打开页面A
3、再打开页面B
4、切换语言
5、发现 页面A 的标题,不是最新的语言。

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Genuine Intel(R) CPU 0000 @ 3.50GHz
    Memory: 10.49 GB / 31.96 GB
  Binaries:
    Node: 22.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.10.0 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.89)
    Internet Explorer: 11.0.19041.4355

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions