去除引入
This commit is contained in:
parent
46f5b5ae04
commit
f71276bf68
24
src/main.js
24
src/main.js
|
@ -142,21 +142,21 @@ if (token) {
|
||||||
_notice = notice(token);
|
_notice = notice(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
var _hmt = _hmt || [];
|
// var _hmt = _hmt || [];
|
||||||
(function () {
|
// (function () {
|
||||||
var hm = document.createElement("script");
|
// var hm = document.createElement("script");
|
||||||
hm.src = "https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";
|
// hm.src = "https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";
|
||||||
var s = document.getElementsByTagName("script")[0];
|
// var s = document.getElementsByTagName("script")[0];
|
||||||
s.parentNode.insertBefore(hm, s);
|
// s.parentNode.insertBefore(hm, s);
|
||||||
})();
|
// })();
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
/* 路由发生变化修改页面title */
|
/* 路由发生变化修改页面title */
|
||||||
if (_hmt) {
|
// if (_hmt) {
|
||||||
if (to.path) {
|
// if (to.path) {
|
||||||
_hmt.push(["_trackPageview", "/#" + to.fullPath]);
|
// _hmt.push(["_trackPageview", "/#" + to.fullPath]);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
// if (to.meta.title) {
|
// if (to.meta.title) {
|
||||||
// document.title = to.meta.title + '-' + JSON.parse(Cookies.get('MerInfo')).login_title
|
// document.title = to.meta.title + '-' + JSON.parse(Cookies.get('MerInfo')).login_title
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue