ADD 动态标题
This commit is contained in:
parent
ac7eafbaad
commit
acfea2468f
|
@ -30,6 +30,9 @@ var isGetApiRouter = false;
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
|
|
||||||
|
//动态标题
|
||||||
|
document.title = `${to.meta.title} - ${config.APP_NAME}`
|
||||||
|
|
||||||
let userInfo = tool.data.get("user");
|
let userInfo = tool.data.get("user");
|
||||||
|
|
||||||
if(to.path === "/login"){
|
if(to.path === "/login"){
|
||||||
|
|
Loading…
Reference in New Issue