同步gitee代码

This commit is contained in:
1024lab@sina.com
2021-08-10 14:13:34 +08:00
parent ca770b208d
commit 5593e3d2f8
82 changed files with 8248 additions and 3 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;