Browse Source

Merge branch 'http_mock' of git.xiaojukeji.com:jacklijiajia/thoth-frontend into http_mock

qinzhipeng_v 5 years ago
parent
commit
f1d0620fd9

+ 1 - 0
package.json

@@ -15,6 +15,7 @@
     "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
   },
   "dependencies": {
+    "@didi/omega-tracker": "^2.2.8",
     "@fullcalendar/core": "^4.3.1",
     "@fullcalendar/daygrid": "^4.3.0",
     "animate.css": "^3.7.2",

+ 4 - 0
public/index.html

@@ -4,6 +4,10 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <meta http-equiv="Expires" content="0">
+    <meta http-equiv="Pragma" content="no-cache">
+    <meta http-equiv="Cache-control" content="no-cache">
+    <meta http-equiv="Cache" content="no-cache">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= webpackConfig.name %></title>
     <link rel="stylesheet" href="./jodit.min.css">

+ 12 - 0
src/App.vue

@@ -6,6 +6,9 @@
 
 <script>
 import { getUserInfo } from '@/api/user.js'
+// omega埋点工具包
+import OmegaTracker from '@didi/omega-tracker/lib/index.esm'
+const config = { appKey: 'omega6b172861f4' }
 
 export default {
   name: 'App',
@@ -15,6 +18,15 @@ export default {
         localStorage.setItem('realname', res.data.chineseName)
         localStorage.setItem('username', res.data.username)
       })
+  },
+  created() {
+    this.initOmegaTracker()
+  },
+  methods: {
+    initOmegaTracker() {
+      const omega = OmegaTracker.getTracker(config)
+      return omega
+    }
   }
 }
 </script>

+ 0 - 1
src/views/projectManage/requirement/details/index.vue

@@ -81,7 +81,6 @@
           <div style="width:83px;height:20px;font-size:18px;font-family:MicrosoftYaHei;color:rgba(51,59,74,1);margin-left:6px">基础信息</div>
         </div>
         <div
-          v-loading="loading.info"
           style="font-size: 14px;color: #666666;margin-top: 4%"
           class="div_requirment_info"
         >

+ 1 - 1
src/views/projectManage/requirement/list/create.vue

@@ -143,7 +143,7 @@ export default {
         pm: null,
         mrdUrl: null,
         dependOnRelease: 0,
-        referredClientType: null,
+        referredClientType: [],
         creator: null
       },
       rules: {