你应该是需要import axios from 'axios'的而axios的使用应该是这样的:
axios({'method': 'get', 'url': 'http://xxx.com', 'data': ''})