Commit 95bfcc1a authored by shangbj's avatar shangbj

Update nuxt.config.js

parent af873c5d
......@@ -13,8 +13,20 @@ module.exports = {
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{ src: 'https://hm.baidu.com/hm.js?d92e58b28fcfbb367b40556a4a1f85ac' },/*引入百度统计js */
]
{
innerHTML: `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c6aba918c558266be343f22530aaf3d9";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`,
type: 'text/javascript'
}
],
__dangerouslyDisableSanitizers: ['script']
},
// cache: true,
css: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment