🖼 测试代码

This commit is contained in:
Hunlongyu
2020-10-21 18:23:45 +08:00
parent e970074266
commit 500dbfa1ee
3 changed files with 16 additions and 0 deletions

View File

@@ -6,6 +6,15 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?62aeb2505bfa26a2461d2a7a3b485096";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<noscript>

View File

@@ -0,0 +1,6 @@
const hmt = window._hmt
hmt.push(['_trackEvent', 'video', 'play', '海上钢琴师'])
hmt.push(['_trackEvent', 'video', 'play', '三国演义'])
hmt.push(['_trackEvent', 'page', 'open', 'Film'])
hmt.push(['_trackEvent', 'page', 'open', 'IPTV'])
console.log(hmt)

View File

@@ -4,6 +4,7 @@ import store from './store'
import 'modern-normalize'
import Register from './components/register'
import './lib/element/index'
import './lib/site/analytics'
Register.registerComponents()
Vue.config.productionTip = false