|
@@ -17,6 +17,9 @@ router.beforeEach(async (to, from, next) => {
|
|
|
// start progress bar
|
|
|
NProgress.start();
|
|
|
console.log(to);
|
|
|
+ // if (to.path) {
|
|
|
+ // window._hmt.push(['_trackPageview', '/#' + to.fullPath]);
|
|
|
+ // }
|
|
|
// set page title
|
|
|
document.title = getPageTitle(to.meta.title);
|
|
|
|
|
@@ -77,7 +80,7 @@ router.beforeEach(async (to, from, next) => {
|
|
|
setInterval(() => {
|
|
|
store.dispatch("user/setNums");
|
|
|
}, 30000)
|
|
|
-
|
|
|
+
|
|
|
const hasGetUserInfo = store.getters.name;
|
|
|
if (hasGetUserInfo) {
|
|
|
next();
|