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.
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-1b37a4b-2c0b8.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-1b37a4b-2c0b8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?