updated README

This commit is contained in:
Marvin Zhang
2019-05-30 19:18:56 +08:00
parent eb4a4ac06b
commit 6cd8d0585b
6 changed files with 39 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
import Vue from 'vue'
import Router from 'vue-router'
import stats from '../utils/stats'
/* Layout */
import Layout from '../views/layout/Layout'
@@ -225,7 +227,7 @@ router.beforeEach((to, from, next) => {
router.afterEach((to, from, next) => {
if (to.path) {
if (localStorage.getItem('useStats') !== '0') {
window._hmt.push(['_trackPageview', to.path])
stats.sendPv(to.path)
}
}
})