自学内容网 自学内容网

el-table添加fixed后错位问题

1 方案1

在这里插入图片描述

return {
isShow:false,
}
  mounted() {
    this.isShow=true
  },
  watch: {
    '$route'(newRoute) {
      this.monitoredRoute = newRoute; // 将新的路由信息保存到组件的monitoredRoute属性中
      // 执行其他操作或调用其他方法
    },
    //或
    $route(newRoute) {
      this.monitoredRoute = newRoute; // 将新的路由信息保存到组件的monitoredRoute属性中
      // 执行其他操作或调用其他方法
      if (newRoute.name == "Parking") {
        this.isShow = false;  
        var res = this;
        setTimeout(function () {
            res.isShow = true;
        }, 550);
      }
    },
  },

原文地址:https://blog.csdn.net/Gpointy/article/details/142627075

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!