import axios from 'axios' console.log('--start--') axios .get('http://mp.cnpc.com.cn/web/dingyue/cron/every_day.php') .then(response => (console.log(response))) .catch(error => (console.log(error))) console.log('--end--')