Mini Program, after deleting a certain order data, it was deleted in the background, but the page was not deleted?

Mini Program, after deleting a certain order data, the background deletes it, but the page is not deleted? I have used this.orderList.splice (_ index, 1) for the original order list data, but the page has not been deleted unless the page is refreshed and the data is reloaded

clipboard.png

clipboard.png

Mar.03,2021

Mini Program needs setData to explicitly cover the data back, directly .splice () in Vue, but not in Mini Program.


the this.orderList that should be checked first, and the direction of this you should check.


is it in the wepy component? Try this.$root.$apply ();


this situation may be asynchronous. Just now you also said that refresh can only be performed by onload method. You can look for


in this respect.
such as
    Page({
        data: {
            arr: ["1","2","3" ]
        }
     })
     this.setData({
         arr: this.data.arr.splice(0,1)
     })

API callback needs to re-setData your array


has it been solved? I also encountered the same problem


this.list = this.list.filter (item = > item.id! = = id);
this.$apply ();

)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be101e-3155a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be101e-3155a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?