How vue-element-admin is to configure the browser page title

Since vue-element-admin branches of a tree in Costa Rica is a dynamic routing to write a title, that you point into the page, the title of the corresponding page it will show, so we only make changes is of no use in the index page, then we change how to modify it?

  1. Find permission.js page that is done right judgment, which has guarded the route when we enter this page, it will get title value our route to modify the browser title.

    document.title = 是用来设置修改浏览器头部中的标题内容

  2. Find getPageTitle () method, then modify the parameters

  3. Enter the settings page to modify the parameters to complete the modification, dynamic rendering title

Guess you like

Origin www.cnblogs.com/jtjianfeng/p/11765345.html