Commit fc3fe520 authored by 张豪's avatar 张豪

fix

parent 527342d4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment