收藏
回答

collocation update 调用成功,但数据没变?

 toExamine(e) {

    wx.showLoading({

      title: '加载中',

    })

    const { item: { _id }, name } = e.currentTarget.dataset;

    const _openid =wx.getStorageSync('openid'

    console.log(_openid)

    db.collection('orderReceive').doc(_id).update({

      data: {

        state: name,

        examinePerson:_openid

      },

      success: (res) => {

          console.log('成功')

        this.onLoad();

        wx.hideLoading();

      }

    })

  },

回答关注问题邀请回答
收藏
登录 后发表内容