Commit e2d663a8 by 前端

fixed

1 parent cb79553d
Showing 1 changed file with 6 additions and 4 deletions
...@@ -39,12 +39,14 @@ import { index } from "./env"; ...@@ -39,12 +39,14 @@ import { index } from "./env";
// } // }
Vue.prototype.$permision = permision; Vue.prototype.$permision = permision;
import sentryInit from "@/utils/sentryConfig/sentryInit"; import sentryInit from "@/utils/sentryConfig/sentryInit";
Vue.prototype.$sendSentry = function (e) { if (index == 3) {
if (index == 3) {
const sentry = sentryInit(); const sentry = sentryInit();
Vue.prototype.$sendSentry = function (e) {
sentry.captureException(e); sentry.captureException(e);
} };
}; } else {
Vue.prototype.$sendSentry = function () {};
}
const app = new Vue({ const app = new Vue({
store, store,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!