vue安装
npm install --save axios进行安装
axios
import axios from "axios";
created() {
let that = this;
const url = 'http://192.168.0.196:8001/task/';
axios.get(url).then(function (res) {
that.taskList = res.data.tasks_list;
}
).catch(
function (error){
alert('hdsjdshgd')
}
)
},