Browse Source

百度统计

xxm 6 years ago
parent
commit
337eecf7fc
2 changed files with 18 additions and 7 deletions
  1. 12 1
      app.html
  2. 6 6
      yarn.lock

+ 12 - 1
app.html

@@ -3,7 +3,18 @@
   <head {{ HEAD_ATTRS }}>
     {{ HEAD }}
   </head>
-  <body {{ BODY_ATTRS }}>
+  <body {{ BODY_ATTRS }}> 
     {{ APP }}
   </body>
+  <script >
+    var _hmt = _hmt || [];
+      (function () {
+        var hm = document.createElement('script');
+        hm.src = '//hm.baidu.com/hm.js?c92adf6182a39eb23c24cf43abc3f439';
+        var s = document.getElementsByTagName('script')[0];
+        s.parentNode.insertBefore(hm, s);
+        console.log('百度统计应用到页面当中了');
+      })();
+
+  </script>
 </html>

+ 6 - 6
yarn.lock

@@ -2885,10 +2885,10 @@ electron-to-chromium@^1.3.164:
   resolved "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.168.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felectron-to-chromium%2Fdownload%2Felectron-to-chromium-1.3.168.tgz#5153da97cacb718dde876b925b2a7a64f9fbaa81"
   integrity sha1-UVPal8rLcY3eh2uSWyp6ZPn7qoE=
 
-element-ui@^2.4.11:
-  version "2.9.2"
-  resolved "https://registry.npm.taobao.org/element-ui/download/element-ui-2.9.2.tgz#f02b6b1dfb937044addbf204eaa15860d544ad84"
-  integrity sha1-8CtrHfuTcESt2/IE6qFYYNVErYQ=
+element-ui@^2.12.0:
+  version "2.12.0"
+  resolved "https://registry.npm.taobao.org/element-ui/download/element-ui-2.12.0.tgz#a893bc11ae4f7dbb7e9d541606f23e643f131ee4"
+  integrity sha1-qJO8Ea5Pfbt+nVQWBvI+ZD8THuQ=
   dependencies:
     async-validator "~1.8.1"
     babel-helper-vue-jsx-merge-props "^2.0.0"
@@ -5062,8 +5062,8 @@ node-releases@^1.1.23:
 
 node-sass@^4.12.0:
   version "4.12.0"
-  resolved "https://registry.npm.taobao.org/node-sass/download/node-sass-4.12.0.tgz#0914f531932380114a30cc5fa4fa63233a25f017"
-  integrity sha1-CRT1MZMjgBFKMMxfpPpjIzol8Bc=
+  resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.12.0.tgz#0914f531932380114a30cc5fa4fa63233a25f017"
+  integrity sha512-A1Iv4oN+Iel6EPv77/HddXErL2a+gZ4uBeZUy+a8O35CFYTXhgA8MgLCWBtwpGZdCvTvQ9d+bQxX/QC36GDPpQ==
   dependencies:
     async-foreach "^0.1.3"
     chalk "^1.1.1"