ADD 动态标题

This commit is contained in:
sc 2021-07-05 13:53:34 +08:00
parent ac7eafbaad
commit acfea2468f
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ var isGetApiRouter = false;
router.beforeEach(async (to, from, next) => {
NProgress.start()
//动态标题
document.title = `${to.meta.title} - ${config.APP_NAME}`
let userInfo = tool.data.get("user");
if(to.path === "/login"){