多幢页面不刷新的问题
Showing
2 changed files
with
11 additions
and
1 deletions
| ... | @@ -249,7 +249,7 @@ export default { | ... | @@ -249,7 +249,7 @@ export default { |
| 249 | }else if(this.$route.path == '/zd'){ | 249 | }else if(this.$route.path == '/zd'){ |
| 250 | this.getRightTree(this.$store.state.zdbsm) | 250 | this.getRightTree(this.$store.state.zdbsm) |
| 251 | }else if(this.$route.path == '/dz'){ | 251 | }else if(this.$route.path == '/dz'){ |
| 252 | this.getRightTree(this.$store.state.dzbsm) | 252 | this.getRightTreeByDzbsm(this.$store.state.dzbsm) |
| 253 | }else{ | 253 | }else{ |
| 254 | this.getTreeList(); | 254 | this.getTreeList(); |
| 255 | } | 255 | } | ... | ... |
| ... | @@ -497,7 +497,17 @@ | ... | @@ -497,7 +497,17 @@ |
| 497 | this.getDzDetailByBsm(this.$route.query.bsm) | 497 | this.getDzDetailByBsm(this.$route.query.bsm) |
| 498 | } | 498 | } |
| 499 | }, | 499 | }, |
| 500 | computed: { | ||
| 501 | dzbsm() { | ||
| 502 | return this.$route.query.bsm; | ||
| 503 | }, | ||
| 504 | }, | ||
| 500 | watch:{ | 505 | watch:{ |
| 506 | |||
| 507 | dzbsm:function (val) { | ||
| 508 | this.getDzDetailByBsm(val) | ||
| 509 | }, | ||
| 510 | |||
| 501 | "$store.state.sxdrType": { | 511 | "$store.state.sxdrType": { |
| 502 | handler(n) { | 512 | handler(n) { |
| 503 | this.$nextTick(()=>{ | 513 | this.$nextTick(()=>{ | ... | ... |
-
Please register or sign in to post a comment