vue-element-admin 修改页面标题(title)
1.找到permission.js页面
其中document.title = getPageTitle(to.meta.title)就是设置title
然后找到getPageTitle方法,按住Ctrl键左键单击getPageTitle方法跳转到get-page-title.js文件界面
![在这里插入图片描述](https://img-blog.csdnimg.cn/2021041917511271.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODQ0NDQz,size_16,color_FFFFFF,t_70)
2.找到get-page-title.js
const title = defaultSettings.title || ‘oe在线教育’ 这一句是定义title 修改就可以
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210419175708888.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODQ0NDQz,size_16,color_FFFFFF,t_70)
3.再找到settings.js
修改默认的title
![在这里插入图片描述](https://img-blog.csdnimg.cn/2021041917583791.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1ODQ0NDQz,size_16,color_FFFFFF,t_70)