|
@@ -5,7 +5,7 @@
|
|
|
</div>
|
|
|
<div style="height: 40px"></div>
|
|
|
<el-menu
|
|
|
- :default-openeds="['/1','/1/1','/1/2','/1/3']"
|
|
|
+ :default-openeds=this.testaa
|
|
|
active-text-color="#ffd04b"
|
|
|
background-color="transparent"
|
|
|
class="sidebar-el-menu"
|
|
@@ -54,6 +54,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ testaa: ['/1'],
|
|
|
list: [
|
|
|
{
|
|
|
path: "/1",
|
|
@@ -122,6 +123,21 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ mounted: function () {
|
|
|
+ var urlStr = window.location.href
|
|
|
+ var values = urlStr.split("?")[1];
|
|
|
+ var valstr = values.split("=")[1];
|
|
|
+
|
|
|
+ if (valstr == 'fd') {
|
|
|
+ this.testaa.push('/1/1')
|
|
|
+ }
|
|
|
+ if (valstr == 'ys') {
|
|
|
+ this.testaa.push('/1/2')
|
|
|
+ }
|
|
|
+ if (valstr == 'sj') {
|
|
|
+ this.testaa.push('/1/3')
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
selectMenu(key, keyPath, node) {
|
|
|
// 右侧区域显示页面
|