Why the dom node cannot be obtained in mounted

Why can"t get dom node in mounted
`
mounted () {

console.log("aaaaaaa", document.getElementById("spChart"));
this.Sdisease();
// const echarts = require("echarts");
// const spxoption = echarts.init(document.getElementById("spChart"));
// console.log(spxoption);

},
`
output as null

May.13,2021

or operate


example
mounted hook can definitely get dom, find out your problem, or try refs

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