diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 8c6c208069a7589bc7d649a0cd3931da5ee8183f..7e994bfd389642961adda0166b472cbb31f3c855 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -602,6 +602,15 @@ export default { computed: {}, watch: {}, methods: { + getCurrentUser() { + this.$api.user.getNowUser().then(({ data }) => { + if (data.success == 1) { + this.$store.commit("userInfofun", data.data); + } else { + console.log(data.errMsg); + } + }); + }, clickBtn(val) { this.resultShow = false; this.activeBtn = val; @@ -1224,6 +1233,7 @@ export default { }, created(){ let _self = this; + _self.getCurrentUser(); let webmap_data = JSON.parse(sessionStorage.getItem('shareWebMapParam')); if(webmap_data){ _self.$store.commit("setZnztParams", webmap_data);