liuyg
2021-07-04 57596bbb422c7e4c328dfb948ae968ed98afbd08
取消提示
2 files modified
6 ■■■■ changed files
store/actions.js 2 ●●● patch | view | raw | blame | history
xcxMapJQLG/js/vueMain.js 4 ●●●● patch | view | raw | blame | history
store/actions.js
@@ -53,7 +53,7 @@
                        return;
                    }
                    store.commit('getUserData',res.data)
                    console.log(res.data,123542);
                    // console.log(res.data,123542);
                    data.isit = true;
                    data.userName = res.data.nick_name; //警袁姓名
                    data.userID = res.data.user_id; //警袁id
xcxMapJQLG/js/vueMain.js
@@ -53,7 +53,7 @@
            this.getdata = this.getQueryVariable('data') || data;
            // this.getdata = data;
            this.changeDom(this.getdata[0]);
            console.log(this.getdata[0]);
            // console.log(this.getdata[0]);
            this.map = this.beginMap(this.map, this.getdata); //创建并接受map
            // this.move = new myDomMove('#seedata', '.title', '#map');
            this.map.invalidateSize(true); //应用地图高度
@@ -353,7 +353,7 @@
                },
            }).then((res) => {
                if (res.data.result.coords == undefined) {
                    console.log('目标太远 或不存在路径')
                    // console.log('目标太远 或不存在路径')
                } else {
                    var resdata = res.data.result.coords;