Mini Program uses wx.makePhoneCall to get the phone number given by the background, how to achieve real-time update

clipboard.png

problem description

after the phone number is updated in the background, the phone number of the foreground can be updated in real time, that is, app.globalData.customerPhone can update it in real time

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

 if (app.globalData.isAuthorize) {
        if (e.currentTarget.dataset.type == 13) {
            wx.makePhoneCall({
                phoneNumber: app.globalData.customerPhone, //
            })
        }

what result do you expect? What is the error message actually seen?

Aug.28,2021
Menu