去除引入

This commit is contained in:
faiz 2024-07-16 17:41:28 +08:00
parent 825430bdc1
commit 17fb1b551c
1 changed files with 12 additions and 12 deletions

View File

@ -93,21 +93,21 @@ Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key]); Vue.filter(key, filters[key]);
}); });
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 = document.title =
to.meta.title + "-" + JSON.parse(Cookies.get("MerInfo")).login_title; to.meta.title + "-" + JSON.parse(Cookies.get("MerInfo")).login_title;