Pārlūkot izejas kodu

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

1007395918@qq.com 5 gadus atpakaļ
vecāks
revīzija
40f6f32f67
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2
    0
      src/components/taro-plugin-canvas/index.js

+ 2
- 0
src/components/taro-plugin-canvas/index.js Parādīt failu

@@ -9,6 +9,7 @@ import {
9 9
   drawLine,
10 10
 } from './utils/draw';
11 11
 import './index.css';
12
+import rtLog from '@/utils/rtLog';
12 13
 
13 14
 let count = 1;
14 15
 export default class CanvasDrawer extends Component {
@@ -167,6 +168,7 @@ export default class CanvasDrawer extends Component {
167 168
       .catch((err) => {
168 169
         Taro.hideLoading();
169 170
         Taro.showToast({ icon: 'none', title: err.message || err.errMsg || '下载图片失败' });
171
+        rtLog.error('下载图片失败, 图片地址 ('+ imageUrl +'), 错误消息: ' + ( err.message || err.errMsg || err))
170 172
         console.error(err);
171 173
         if (!onCreateFail) {
172 174
           console.warn('您必须实现 taro-plugin-canvas 组件的 onCreateFail 方法,详见文档 https://github.com/chuyun/taro-plugin-canvas#fail');