Commit 9e65b3cf authored by wildfirecode13's avatar wildfirecode13

加了监控

parent ad62dfca
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"tb": "spark build --type taobao" "tb": "spark build --type taobao"
}, },
"dependencies": { "dependencies": {
"@spark/monitor-sdk": "^1.1.3",
"@spark/api-base": "^1.0.11", "@spark/api-base": "^1.0.11",
"@spark/guideact": "^1.0.11", "@spark/guideact": "^1.0.11",
"@spark/projectx": "^1.0.3", "@spark/projectx": "^1.0.3",
......
...@@ -10,6 +10,7 @@ import Main3 from "./pages/main3/main3.jsx"; ...@@ -10,6 +10,7 @@ import Main3 from "./pages/main3/main3.jsx";
MOCK_STATUS && (require('../mock/index')); MOCK_STATUS && (require('../mock/index'));
MD(); MD();
import "./monitor.js"; //前端错误监控
class App extends Component { class App extends Component {
constructor(props) { constructor(props) {
......
import { SentryInit } from '@spark/monitor-sdk';
CFG.MONITOR = true;
CFG.projectName = '工行卡中心e趣小镇';
CFG.SOURCEVERSION = 'icbcrpg';
if (CFG && CFG.MONITOR) {
SentryInit({
projectId: CFG.projectId,
name: CFG.projectName, // 线上正式项目的名称
sourcemapVersion: CFG.SOURCEVERSION,
users: [
"15068753667"
]
// 前端开发者的钉钉手机号,字符串类型,可多个, 例如 ['176xxxx', '151xxxx']
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment