Mini Program wepy framework data initialization will have cache problems?

I use the wepy framework to develop Mini Program. There is a list interface. From the list page, you can enter the details page with id 1. There is a name attribute in the data of the details page, and the name is assigned. Then click on the details page with id 2, and find that the value of name is the value of the details page with id 1. I show that everything is normal in the Wechat developer tool, except for the problem that occurs when previewing on the phone.

isn"t 1:data the place for data definition and initialization? Why is the value of name not initialized?
question 2: I have tried a lot of methods. I can only assign an initial value to name in the onLoad method. I originally wanted to assign an initial value when I left the page, that is, when the onUnload method was executed, but there was no effect, and the method can also be executed. Why do I enter the details again or the value assigned last time?

export default class ActiveApplyDetail extends wepy.page {
  data = {
    name: ""
  }

  onLoad(){

  }

  onUnload(){

  }
}

the development of Mini Program for the first time, there are a lot of things I don"t understand, please give me a lot of guidance!

Mar.25,2021

also found this problem recently, not reinitializing data in onload. Is there any other solution?

Menu