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

This commit is contained in:
YunaiV
2022-02-15 22:08:40 +08:00
parent 7df42db2e2
commit 7bf9a85263
12 changed files with 59 additions and 5 deletions

View File

@ -12,6 +12,7 @@ const whiteList = ['/login', '/social-login', '/auth-redirect', '/bind', '/regi
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: '/' })