From f7edbf1f0529a958d0c00fdf7f326abada03e088 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Fri, 5 Aug 2022 17:34:17 +0800 Subject: [PATCH] update --- public/index.html | 3 --- src/router/index.js | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index db1c081..86d638c 100644 --- a/public/index.html +++ b/public/index.html @@ -8,9 +8,6 @@ - <%= webpackConfig.name %> diff --git a/src/router/index.js b/src/router/index.js index a5a351e..a9bc376 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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 }