Real-time update of vue page

sometimes the data in the code is modified, but the page is not updated, and it needs to be refreshed manually. How to set it so that no matter what changes have been made in the code, the page can be updated in real time

May.22,2021

this depends on how your code is written. It is recommended to post the complete code


with all due respect, there are many reasons for this problem


you add a v-if to the part to be updated. When you update, set v-if to false , and change it to true . Add a responsive attribute to the object, or add a value to the array. See api
https://cn.vuejs.org/v2/api/-sharp.


if I guess correctly, You may encounter array detection problems:
ide/list.html-sharp%E6%95%B0%E7%BB%84%E6%9B%B4%E6%96%B0%E6%A3%80%E6%B5%8B" rel=" nofollow noreferrer "> to view the official website description:
roughly means that some methods of the array will not change the original array (but return the new array). For example, filter, concat, slice.,so Vue cannot detect a change. You have to change your position.


if it is built with vue-cli, there may be problems using auto-saved IDE like webstrom. This is also the case with me before. It would be better to change vscode.


you can request the interface to obtain data again after modifying the code

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