解决方案, 把dom提到body里面
onMounted(() => {
var dom = document.getElementById('VariableTextPop')
document.body.appendChild(dom)
})
<div
class="VariableTextPop"
id="VariableTextPop"
>
text
</div>
解决方案, 把dom提到body里面
onMounted(() => {
var dom = document.getElementById('VariableTextPop')
document.body.appendChild(dom)
})
<div
class="VariableTextPop"
id="VariableTextPop"
>
text
</div>