|
|
|
@@ -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> |
|
|
|
|