1app.vue路由要判断 为什么判断 是因为登录页面不需要;
watch: {
$route: (to) => {
if (to.path === "/login") {
document.getElementById("main").style.display = "none";
} else {
document.getElementById("main").style.display = "block";
}
},
},
2 写法
<ul class="main-div-content" id="main-div-content">
<el-tooltip
popper-class="student-light-tooltip-el"
effect="light"
placement="left"
>
<div slot="content" @click="clickAsk" class="slot-style">我要咨询</div>
<li><img src="./assets" /></li>
</el-tooltip>
<el-tooltip
popper-class="student-light-tooltip-phone-el"
effect="light&#