Commit 16479313 by 程默

fix

parent 3507389f
......@@ -24,7 +24,7 @@
},
"dependencies": {
"flyio": "^0.6.14",
"mayi-analytics": "^1.1.11",
"mayi-analytics": "^1.1.12",
"mpvue": "^2.0.0",
"vuex": "^3.0.1"
},
......
<script>
export default {
created() {
// NODE_ENV
......@@ -35,6 +34,7 @@ export default {
console.log(data, "js异常捕获");
this.$mpAnalytics.recordError({
data,
keyword:data,
extendsInfo: {
mixid: this.$store.state.mixid || null
}
......
......@@ -6,11 +6,11 @@ Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$store = Store
//异常监控(行为收集)
// 异常监控(行为收集)
let mpAnalytics = require("../node_modules/mayi-analytics/dist/mayi.mpAnalytics.js")
.default;
mpAnalytics.init({
url: "https://analytics.mayi888.cn/ma.gif",
url:process.env.NODE_ENV == 'production'?"https://analytics.mayi888.com/ma.gif":"https://analytics.mayi888.cn/ma.gif", //错误上报地址
app: "mayi-mp-shop",//项目名称
wx
});
......
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