去除引入

This commit is contained in:
faiz 2024-07-16 17:41:06 +08:00
parent 46f5b5ae04
commit f71276bf68
1 changed files with 12 additions and 12 deletions

View File

@ -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
// } // }