Commit e2d663a8 by 前端

fixed

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