@titaui/pc 1.11.33 → 1.11.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,6 +37,8 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
|
37
37
|
|
|
38
38
|
require("rc-color-picker/assets/index.css");
|
|
39
39
|
|
|
40
|
+
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
41
|
+
|
|
40
42
|
require("./index.css");
|
|
41
43
|
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -172,7 +174,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
172
174
|
var imgUrl = result.toDataURL('image/png'); // 得到图片的base64编码数据
|
|
173
175
|
|
|
174
176
|
// 得到图片的base64编码数据
|
|
175
|
-
_toast["default"].Warning('
|
|
177
|
+
_toast["default"].Warning('导出中,请勿关闭弹窗', {
|
|
176
178
|
canClose: true
|
|
177
179
|
});
|
|
178
180
|
|
|
@@ -206,6 +208,11 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
206
208
|
actionGroup: 'okr地图图片',
|
|
207
209
|
productName: 'okr地图导出'
|
|
208
210
|
});
|
|
211
|
+
Sentry.withScope(function (scope) {
|
|
212
|
+
scope.setTag("error-level", "P0");
|
|
213
|
+
scope.setTag("error-type", "地图导出-图片生成");
|
|
214
|
+
scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
215
|
+
});
|
|
209
216
|
(0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
|
|
210
217
|
var image = new Image(); // @ts-ignore
|
|
211
218
|
|
|
@@ -215,6 +222,11 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
215
222
|
actionGroup: 'okr地图接口',
|
|
216
223
|
productName: 'okr地图导出'
|
|
217
224
|
});
|
|
225
|
+
Sentry.withScope(function (scope) {
|
|
226
|
+
scope.setTag("error-level", "P0");
|
|
227
|
+
scope.setTag("error-type", "地图导出-图片地址");
|
|
228
|
+
scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
229
|
+
});
|
|
218
230
|
|
|
219
231
|
_toast["default"].Warning('图片上传成功,准备本地下载', {
|
|
220
232
|
canClose: true
|