摘要:
新建network文件夹及request.js import axios from 'axios' export function request(config){ //创建axios实例 const instance = axios.create({ baseURL: 'http://123.20 阅读全文
posted @ 2022-11-27 22:54
iTao0128
阅读(31)
评论(0)
推荐(0)
摘要:
安装 npm install axios --save axios基本使用 axios({ url: 'http://123.207.32.32:8000/home/multidata', method: 'get'//不写默认get方式 }).then(res => { console.log(r 阅读全文
posted @ 2022-11-27 19:43
iTao0128
阅读(76)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2022-11-27 17:56
iTao0128
阅读(26)
评论(0)
推荐(0)
摘要:
const obj = { name: '张三', age: 20, address: 'abc' } const {name,address} = obj; console.log(name); console.log(address); 数组的解构 const names = ["张三","李四 阅读全文
posted @ 2022-11-27 17:41
iTao0128
阅读(11)
评论(0)
推荐(0)
摘要:
示例:修改state中info对象的name值 state: { info: {id: 1003, name: "kobe" } } actions: {//异步请求、方法写在actions里 aUpdateInfo(context,value){//{commit,state} setTimeou 阅读全文
posted @ 2022-11-27 11:53
iTao0128
阅读(25)
评论(0)
推荐(0)

浙公网安备 33010602011771号