摘要:
在项目根目录下创建一个vue.config.js module.exports = { // 配置webpack configureWebpack: { // 配置与路径相关的 resolve: { // 省略文件后缀名 // extensions: ['.js', '.vue', '.json'] 阅读全文
posted @ 2022-09-08 21:09
jxweber
阅读(81)
评论(0)
推荐(0)
摘要:
import axios from 'axios' export function request(config){ // 创建实例 const instance = axios.create({ baseURL: '请求baseURL', timeout: 5000 }) // 请求拦截 inst 阅读全文
posted @ 2022-09-08 21:00
jxweber
阅读(710)
评论(0)
推荐(0)
摘要:
小程序中发送网络请求的API:wx:request(),基本用法: wx.request({ url: '请求地址', success:(res)=>{ //请求成功时执行 console.log(res); } }) 传参的用法: wx.request({ url: '请求地址', data: { 阅读全文
posted @ 2022-09-08 20:33
jxweber
阅读(287)
评论(0)
推荐(0)
浙公网安备 33010602011771号