This commit is contained in:
Zheng Jie
2022-08-05 17:34:17 +08:00
parent fa1ce408d4
commit f7edbf1f05
2 changed files with 9 additions and 3 deletions

View File

@@ -12,6 +12,15 @@ NProgress.configure({ showSpinner: false })// NProgress Configuration
const whiteList = ['/login']// no redirect whitelist
router.beforeEach((to, from, next) => {
setTimeout(() => {
var _hmt = _hmt || [];
(function() {
var hm = document.createElement('script')
hm.src = 'https://hm.baidu.com/hm.js?300a24a5326d0e7a0ff1b14c4e8d9056'
var s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore(hm, s)
})()
}, 0)
if (to.meta.title) {
document.title = Config.title + ' - ' + to.meta.title
}