vue delete the list data, refresh the page

Today the reconstructed Medical Waste h5 platform when the page is about to be completed, Big Brother gave me the test found a bug, when only one data list, after deleting retained, can not be repeated deleted, but the list is not a plurality of data happens to retain data, I sometimes silly, there is no reason to reload the page after deleting data. Reacquisition after myself trying to delete data list data, the data is still preserved, but also tried to jump the routing method, or not, from the Internet to find a less suitable method (I feel fine), use this . $ router.go (0), will force a refresh, a blank page experience is not good. There is also a best way, I did not try, because of this. $ Router.go (0) have to reload the page, and I do not forgive the spirit of excellence, it is made h5 page tired, and later carefully examined why the code again delete data after the acquisition will be problems to the background, the original is not to get a list of list data before blanking. After blanking the list of deleted data is no problem. In this issue I know of any development products are not beginning a complete product, there must be constantly revised and psychological preparation.

. // _this $ router.go (0); the test is invalid on ios.
//  _this.$router.push("/showWaste?userId=" + this.userId);
 _this.getWasteList();
 
 

Guess you like

Origin www.cnblogs.com/modefy/p/11697873.html