Commit 95bbf8b2 by wanglizhen

删除打印

parent ffef8ab4
......@@ -24,7 +24,7 @@ router.beforeEach((to, from, next) => {
NProgress.start()
if (getToken()) {
changeMenu(to)
to.meta.title && useSettingsStore().setTitle(to.meta.title)
/* has token*/
if (to.path === '/login') {
......@@ -81,7 +81,6 @@ router.beforeEach((to, from, next) => {
// 监听路由变化更换菜单
const changeMenu = (to) => {
console.log(to)
const { path } = to;
const navList = JSON.parse(sessionStorage.getItem('navList')) || [];
if(path === '/' || path === ''){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论