gxd-uni-library-editx 1.0.8-beta113 → 1.0.8-beta115

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxd-uni-library-editx",
3
- "version": "1.0.8-beta113",
3
+ "version": "1.0.8-beta115",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -242,12 +242,6 @@
242
242
  default: false, //false=自定义 true=系统导航
243
243
  },
244
244
 
245
- //是否为预览模式
246
- wiewType: {
247
- type: Boolean,
248
- default: false,
249
- }
250
-
251
245
 
252
246
  },
253
247
  data() {
@@ -290,7 +284,8 @@
290
284
  observer: null,
291
285
 
292
286
  //底部是否插槽模式
293
- isFooterSolt: true
287
+ isFooterSolt: true,
288
+ wiewType: false,
294
289
 
295
290
  }
296
291
  },
@@ -428,6 +423,8 @@
428
423
  },
429
424
 
430
425
  created() {
426
+ this.wiewType = this.$configProject.isPreview;
427
+
431
428
  //切换页面之后数据清空
432
429
  this.uiErrorLogs = this.errorLogs;
433
430
  this.uiLogs = this.logs;
@@ -276,14 +276,12 @@ export function handlePesponse(
276
276
 
277
277
  //statusCode !== undefined
278
278
  if (response['statusCode'] !== undefined) {
279
- storage.set(`xd.log.${new Date().getTime()}`, {
280
- logs: {
281
- ...requestInfo,
282
- type: 'handle.ajax.default',
283
- dates: new Date().getTime()
284
- },
285
- level: 'alert'
286
- });
279
+ //记录错误日志
280
+ if (typeof getApp().saveLogs === 'function'
281
+ && !checkNotLogs(request.options)
282
+ ) {
283
+ getApp().saveLogs(requestInfo, 'alert', 'ajax');
284
+ }
287
285
  }
288
286
 
289
287
  if (!$vm) {
@@ -31,7 +31,7 @@ const ignoreErrors = ()=>{
31
31
  't.apply',//框架报错
32
32
  //百度定位
33
33
  function (str) {
34
- return !!(str && str.indexOf('this.map.B.ze') === -1);
34
+ return !!(str && str.indexOf('map.B.ze') === -1);
35
35
  }
36
36
  ]
37
37
  };