去除引入
This commit is contained in:
parent
825430bdc1
commit
17fb1b551c
24
src/main.js
24
src/main.js
|
@ -93,21 +93,21 @@ Object.keys(filters).forEach(key => {
|
|||
Vue.filter(key, filters[key]);
|
||||
});
|
||||
|
||||
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