aa4ac7f8 by weimo934

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

1 parent 4d12d7cc
...@@ -154,9 +154,12 @@ export default { ...@@ -154,9 +154,12 @@ export default {
154 this.getTreeList(); 154 this.getTreeList();
155 } 155 }
156 }, 156 },
157 // "$store.state.zdbsm": function(bsm) { 157 "$store.state.zdbsm": function(bsm) {
158 // this.getRightTree(bsm); 158 this.getRightTree(bsm);
159 // }, 159 },
160 },
161 mounted(){
162
160 }, 163 },
161 created() { 164 created() {
162 if (this.$route.meta) { 165 if (this.$route.meta) {
...@@ -214,7 +217,7 @@ export default { ...@@ -214,7 +217,7 @@ export default {
214 } 217 }
215 //刷新页面后根据不同路由高亮相对应的导航 218 //刷新页面后根据不同路由高亮相对应的导航
216 if(this.$route.path == '/zrz' || this.$route.path == '/zd' || this.$route.path == '/dz'){ 219 if(this.$route.path == '/zrz' || this.$route.path == '/zd' || this.$route.path == '/dz'){
217 220
218 }else{ 221 }else{
219 this.headTop.forEach(item=>{ 222 this.headTop.forEach(item=>{
220 if (item.path == this.$route.path) { 223 if (item.path == this.$route.path) {
...@@ -257,7 +260,7 @@ export default { ...@@ -257,7 +260,7 @@ export default {
257 }, 260 },
258 async getDicData(name) { 261 async getDicData(name) {
259 return await getDdicByMC(name).then((res)=> { 262 return await getDdicByMC(name).then((res)=> {
260 return res.result 263 return res.result
261 }); 264 });
262 }, 265 },
263 getRightTree(bsm) { 266 getRightTree(bsm) {
......