Why aren't the styles defined in mounted () loaded?

problem description

defined style did not load successfully

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

expected effect:

id

of style style loaded successfully

related codes

/ / Please paste the code text below (do not replace the code with pictures)

 mounted(){
    $("-sharpselId").children("div").eq(0).children("div").css({"overflow":"hidden","text-overflow":"ellipsis"});

},

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

Nov.17,2021
The
dom action is placed in the $nextTick function

if it is dynamically output, do not use it in mounted to set it, because the relevant dom element was not found. After completing the ajax asynchronous request, use this.$nextTick, as follows:
this.$nextTick (() = > {$("- sharpselId"). Children ("div"). Eq (0). Children ("div"). Css ({"overflow": "hidden", "text-overflow": "ellipsis"});})


mounted(){
    this.$nextTick(() => {
        $("-sharpselId").children("div").eq(0).children("div").css({"overflow":"hidden","text-overflow":"ellipsis"});
    })
},
Menu