收藏
回答

用wx.showModal调试不展示效果console打印警告 [Deprecation]如何处理?

异常信息:

worker.js?libName=WAAccelerateWorker.js:1 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.

t.onmessage @ worker.js?libName=WAAccelerateWorker.js:1

代码如下:

  _cancelEvent() {
    console.log("点击了不同意")
    let userInfo = this.userInfo
    wx.showModal({
      title: this.msgTransferTitle,
      content: this.remark,
      confirmText: '确认',
      confirmColor: '#cccccc',
      showCancel: true,
      cancelText: '取消',
      cancelColor: '#ff0000',
      success (res) {
        if (res.cancel) {
          this.displayTrasferTips()
        }
        if (res.confirm) {
            let isAgree = '1' //同意:0,不同意:1
            MemberApi.memberMigrateConfirm({
                memberId: userInfo.id,
                isAgree
            }).then(res =>{
                console.log(res)
                if(res.data.status === 'SUCCESS'){
                    this.selectComponent("#threeButtonDialog").hideDialog()
                }
                this.selectComponent("#threeButtonDialog").hideDialog()
            })
        }
      }
    })
  },
回答关注问题邀请回答
收藏

1 个回答

  • ProtectingFlowers
    ProtectingFlowers
    03-25

    跟你相同问题,但是我是因为这个文字超出了

    03-25
    有用
    回复
登录 后发表内容