axios 发送请求(封装视频)
在cli里面的用法
https://www.jianshu.com/p/979194ae343f
https://www.runoob.com/vue2/vuejs-ajax-axios.html
https://www.jianshu.com/p/d771bbc61dab
http://www.axios-js.com/zh-cn/docs/
https://www.cnblogs.com/luobiao/p/11344469.html
可以使ES6语法
this.$axios.get(`http://127.0.0.1:5000/Check/?user_id=${this.$route.query.userid}`).this.$route.query.userid 是获取当前url的 userid 键的值 参考 https://www.cnblogs.com/kaibindirver/p/13560113.html
配置axios
this.$axios.defaults.baseURL = 'http://192.168.1.101:5000/'; 参考: https://www.cnblogs.com/5201314m/p/13411645.html https://www.kancloud.cn/yunye/axios/234845/ (中文参考文档--含拦截器) 其他待学习: 封装 看看 https://www.bilibili.com/video/BV1Ft4y1m7n1?p=3 https://www.bilibili.com/video/BV1ns411H7Tz?from=search&seid=17187456868457963248 https://www.bilibili.com/video/BV1Nk4y1k7QS?from=search&seid=17187456868457963248 真是项目参考 https://i.cnblogs.com/posts/edit-done;postId=15396789