Mini Program's problem of refreshing data

when the navigationStyle of Mini Program"s window property is set to custom, there is a button in the upper right corner of the page:

clipboard.png

when I clicked the red circle button, I just closed the page, but Mini Program didn"t close it? And this caused me to click again to open Mini Program, the page data did not refresh? How to solve this hole? Do you know anything

(this is the second Mini Program. My own feeling is that Mini Program has too many holes. If it is not necessary-if it is not for the product to do this, I will not use Mini Program to do things.)

May.22,2021

you can end the process, or write the acquired data in onShow


use onShow () to execute

every time the page is opened.
Menu