Micro-channel device debugging applets in some small problems

Today, with mpvue write a letter login micro business processing time, I encountered a strange problem. I want to record it, so as not to step on the next pit again.

Environment like this, my own background is built based on wafer2-node-sdk business processing API, the use of micro-channel developer tools to debug test user login is no problem.

Interface is as follows.

Background to the micro-channel transmission to the server acquired by userInfo credentials.

 

 

 

 But the real machine debugging, it has been in being request.

In the machine is running really is not automatically clear the cache mechanism, so if somehow the bug appears, therefore, consider whether the problem is caused by the cache.

So set a button in the login screen, use triggering event api clear the cache.

  html code: <button class = "login- btn" @ click = "clear ()"> Clear cache </ Button> 


the JS Code:      
         Clear () { 
        wx.clearStorage () 
      }


    

  

Click Clear Cache: OK 

Micro-channel test normal landing

 

Guess you like

Origin www.cnblogs.com/xochin001/p/11304635.html