系统布局配置支持动态标题开关

This commit is contained in:
RuoYi
2021-06-10 18:05:27 +08:00
parent a3116cd27d
commit 557672ba9f
11 changed files with 55 additions and 7 deletions

View File

@ -12,6 +12,7 @@ const whiteList = ['/login', '/auth-redirect', '/bind', '/register']
router.beforeEach((to, from, next) => {
NProgress.start()
if (getToken()) {
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })