浏览代码

增加百度统计

shaogen1995 3 年之前
父节点
当前提交
062fa72edc
共有 3 个文件被更改,包括 30 次插入17 次删除
  1. 28 15
      public/index.html
  2. 1 1
      src/api/request.js
  3. 1 1
      src/views/Home.vue

+ 28 - 15
public/index.html

@@ -1,17 +1,30 @@
 <!DOCTYPE html>
 <html lang="">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title></title>
-  </head>
-  <body>
-    <noscript>
-      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
-    </noscript>
-    <div id="app"></div>
-    <!-- built files will be auto injected -->
-  </body>
-</html>
+
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width,initial-scale=1.0">
+  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+  <title></title>
+  <script>
+    var _hmt = _hmt || [];
+    (function () {
+      var hm = document.createElement("script");
+      hm.src = "https://hm.baidu.com/hm.js?1d20eb7203f2de4aa6337f88f7e414f2";
+      var s = document.getElementsByTagName("script")[0];
+      s.parentNode.insertBefore(hm, s);
+    })();
+  </script>
+</head>
+
+<body>
+  <noscript>
+    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
+      Please enable it to continue.</strong>
+  </noscript>
+  <div id="app"></div>
+  <!-- built files will be auto injected -->
+</body>
+
+</html>

+ 1 - 1
src/api/request.js

@@ -1,7 +1,7 @@
 import axios from 'axios'
 const service = axios.create({
   // baseURL: 'http://192.168.0.135:8109', // 本地调试
-  baseURL: 'http://47.112.166.173:8109', // 线上调试和build
+  baseURL: 'https://project-play.4dage.com', // 线上调试和build
   timeout: 5000
 })
 // // 请求拦截器

+ 1 - 1
src/views/Home.vue

@@ -81,7 +81,7 @@ export default {
   data() {
     //这里存放数据
     return {
-      baseUrl: "http://47.112.166.173:8109",
+      baseUrl: "https://project-play.4dage.com",
       // 图片上传
       imgList: [],
       ruleForm: {