去除引入
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);
|
||||
}
|
||||
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
// var _hmt = _hmt || [];
|
||||
// (function () {
|
||||
// var hm = document.createElement("script");
|
||||
// hm.src = "https://cdn.oss.9gt.net/js/es.js?version=merchantv2.0";
|
||||
// var s = document.getElementsByTagName("script")[0];
|
||||
// s.parentNode.insertBefore(hm, s);
|
||||
// })();
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
/* 路由发生变化修改页面title */
|
||||
if (_hmt) {
|
||||
if (to.path) {
|
||||
_hmt.push(["_trackPageview", "/#" + to.fullPath]);
|
||||
}
|
||||
}
|
||||
// if (_hmt) {
|
||||
// if (to.path) {
|
||||
// _hmt.push(["_trackPageview", "/#" + to.fullPath]);
|
||||
// }
|
||||
// }
|
||||
// if (to.meta.title) {
|
||||
// document.title = to.meta.title + '-' + JSON.parse(Cookies.get('MerInfo')).login_title
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue