mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-12-26 09:26:00 +08:00
2.0的js版本和后端 完成
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export const smartSentry = {
|
||||
/**
|
||||
* sentry 主动上报
|
||||
*/
|
||||
captureError: (error) => {
|
||||
if (error.config && error.data && error && error.headers && error.request && error.status) {
|
||||
return;
|
||||
}
|
||||
// Sentry.captureException(error);
|
||||
console.error(error);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user