This commit is contained in:
zhuoda
2022-11-05 22:38:44 +08:00
parent 20e308793a
commit 1f75c9614e
1848 changed files with 15509 additions and 130864 deletions

View File

@@ -0,0 +1,17 @@
import * as Sentry from '@sentry/browser';
const SmartSentry = {};
SmartSentry.install = function(Vue, options) {
Vue.prototype.$smartSentry = {
captureException: (error) => {
console.error(error);
if (error.config && error.data && error && error.headers && error.request && error.status) {
return;
}
Sentry.captureException(error);
}
};
};
export default SmartSentry;