Skip to content

Using the $router.back() method in a template will accidentally clear the electron window title #1610

@Danjuanlab

Description

@Danjuanlab

Version

4.1.6

Reproduction link

http://www.nore.com/

Steps to reproduce

1.When creating an electron BrowserWindow, add the title attribute to the configuration
2.Add some front-end VUE pages
3.Use $router.back or $router.go(-1) in the vue page template
4.After vue-router goes back, Electron's window title is emptied

What is expected?

$router.back does not affect the title

What is actually happening?

The electron title is emptied


electron version:19.1.1
vue-router:4.1.6
vue:3.2.41

If I don't use $router.back() in the template page, but instead use userRouter in setup and push to the specified page, the electron's header is not cleared

1
2
3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions