Browse Source

解决滚动条引起宽度不一致问题

tags/v1.22.5.1^2
wangjr 3 years ago
parent
commit
a2a77d2c17
1 changed files with 9 additions and 10 deletions
  1. +9
    -10
      web_src/js/components/DataAnalysis.vue

+ 9
- 10
web_src/js/components/DataAnalysis.vue View File

@@ -1,5 +1,5 @@
<template>
<div style="height:100%; flex:1" >
<el-row style="height:100%;width: 100%; flex:1" >
<el-col :span="3" style="height:100%;padding-right:15px;">
<el-menu
default-active="this.$route.path"
@@ -33,7 +33,7 @@
</el-col>
<router-view> </router-view>
</div>
</el-row>
</template>

<script>
@@ -44,14 +44,13 @@
}
},
created(){
//beforeCreate(),created(), beforeMount(), mounted() 都可以
var url_params = document.getElementById("url_params").value;
console.log('url_params:',url_params);
console.log('this.$router.path:',this.$router.path);
if (url_params!='' && url_params!=undefined){
this.$router.push(url_params)
console.log('this.$router.pathbefore:',this.$router.path);
}
var url_params = document.getElementById("url_params").value;
// console.log('url_params:',url_params);
// console.log('this.$router.path:',this.$router.path);
if (url_params!='' && url_params!=undefined){
// this.$router.push(url_params)
console.log('this.$router.pathbefore:',this.$router.path);
}
},
}
</script>


Loading…
Cancel
Save