全局axios的默认值

  1. axios.defaults.baseURL = 'https://api.example.com';

教程:

  1. https://blog.csdn.net/qq_33594380/article/details/79709481