Vue gets body height

problem description

how do I get the body height of vue after loading data?

the environmental background of the problems and what methods you have tried

for a web page embedded in app, ios needs to get the height of the page.

related codes

mounted(){
            console.log(document.body.scrollHeight)
        },

what result do you expect? What is the error message actually seen?

is not available in the mounted hook.
how to get the body height of loaded data?

Feb.22,2022

if you want to listen to the data loading completion on the home page, you can listen to the list, in watch and then:

this.$nextTick(() => {
    const height = document.body.scrollHeight
})
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-1b3b2eb-2c27f.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-1b3b2eb-2c27f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?