Skip to content

Commit 0975636

Browse files
update
1 parent 051cc70 commit 0975636

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • 08-前端框架/06-vue/18-http请求&axios

08-前端框架/06-vue/18-http请求&axios/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import App from './components/app.vue';
33

44
import Axios from 'axios';
55

6+
// npm i axios -S
7+
//
68
// options: headers、baseURL、params
79
// 默认全局设置
810
Axios.defaults.baseURL = 'http://www.csxiaoyao.com/api/';

0 commit comments

Comments
 (0)