Commit 16479313 by 程默

fix

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