1.使用axios插件
npm intsll axios
2.引入插件
import axios from 'axios'
3.使用插件
mounted: function () {
axios.get('http://www.wz.com')
.then(response => (this.info = response))
}
1.使用axios插件
npm intsll axios
2.引入插件
import axios from 'axios'
3.使用插件
mounted: function () {
axios.get('http://www.wz.com')
.then(response => (this.info = response))
}