|
|
@@ -1421,40 +1421,7 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
initTest(){
|
|
|
- axios.get('https://www.baidu.com')
|
|
|
- .then(response => {
|
|
|
- console.log('可以访问百度');
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- console.log('无法访问百度', error);
|
|
|
- });
|
|
|
- // fetch('https://www.baidu.com').then(response => {
|
|
|
- // if (response.ok) {
|
|
|
- // this.initMap()
|
|
|
- // this.showMap = true;
|
|
|
- // console.log('可以访问百度');
|
|
|
- // } else {
|
|
|
- // console.log('不能访问百度');
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .catch(error => {
|
|
|
- // console.log('网络错误,无法访问百度');
|
|
|
- // });
|
|
|
-
|
|
|
- //axios.defaults.baseURL="https:/www.amap.com/" //
|
|
|
- // //Access-Control-Allow-Origin
|
|
|
- // axios.defaults.headers.post['Content-Type'] = 'application/json'
|
|
|
- // axios.get()
|
|
|
- // .then(response => {
|
|
|
- // this.showMap = true;
|
|
|
- // console.log(response)
|
|
|
- // })
|
|
|
- // .catch(error => {
|
|
|
- // console.log(error)
|
|
|
- // // 处理错误
|
|
|
- // });
|
|
|
-
|
|
|
-
|
|
|
+ this.showMap=false;
|
|
|
},
|
|
|
validateItemValue(rule, value, callback){
|
|
|
let param = {
|