How does the vue destroyed () function change a css style?

in vue, this is a window departure event. I want to change the style of body through this, but it seems to have misreported

.

how can I change its style?


wants to use the DOM operation, document.querySelector ('body'). Style.overflow =' hidden'


what body is never defined maybe you mean window.document.body but your editor doesn't know.
in addition, direct dom operation is not recommended. You can use eventBus or vuex to notify the root component or any node you want to change the color of the specified dom by className

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