xujing 5 年之前
父節點
當前提交
5869a67c85
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      src/pages/project/h5Page.js
  2. 1
    1
      src/utils/request.js

+ 1
- 1
src/pages/project/h5Page.js 查看文件

108
         })
108
         })
109
       })
109
       })
110
       const { userInfo: { person: { avatarurl, phone } } } = this.props
110
       const { userInfo: { person: { avatarurl, phone } } } = this.props
111
-      console.log(this.props, "this.props")
111
+      console.log(this.props, "this.propsthis.propsthis.props")
112
       if (avatarurl && avatarurl.indexOf('wx.qlogo.cn') != -1) {
112
       if (avatarurl && avatarurl.indexOf('wx.qlogo.cn') != -1) {
113
         console.log(avatarurl, "有头像哦~")
113
         console.log(avatarurl, "有头像哦~")
114
         this.setState({
114
         this.setState({

+ 1
- 1
src/utils/request.js 查看文件

79
       throw res.data
79
       throw res.data
80
     }
80
     }
81
   }).catch((err) => {
81
   }).catch((err) => {
82
-    console.error(err)
82
+    console.error(err,url)
83
     
83
     
84
     let errMessage = `请求失败: ${err.errMsg}`
84
     let errMessage = `请求失败: ${err.errMsg}`
85
     if (err.errMsg) {
85
     if (err.errMsg) {