aa4ac7f8 by weimo934

fix(Home):连续新建宗地重新加载左侧目录树

1 parent 4d12d7cc
......@@ -154,9 +154,12 @@ export default {
this.getTreeList();
}
},
// "$store.state.zdbsm": function(bsm) {
// this.getRightTree(bsm);
// },
"$store.state.zdbsm": function(bsm) {
this.getRightTree(bsm);
},
},
mounted(){
},
created() {
if (this.$route.meta) {
......@@ -214,7 +217,7 @@ export default {
}
//刷新页面后根据不同路由高亮相对应的导航
if(this.$route.path == '/zrz' || this.$route.path == '/zd' || this.$route.path == '/dz'){
}else{
this.headTop.forEach(item=>{
if (item.path == this.$route.path) {
......@@ -257,7 +260,7 @@ export default {
},
async getDicData(name) {
return await getDdicByMC(name).then((res)=> {
return res.result
return res.result
});
},
getRightTree(bsm) {
......