vue request.js封装及使用
1、request.js代码部分import axios from "axios";import $store from "../store";import toLogin from "@libs/login";import { VUE_APP_API_URL} from "@utils/index";const instance = axios.create({ baseURL: VUE_APP_API_URL, timeout: 3000});const defaultOpt
原创
2020-07-01 09:44:59 ·
1462 阅读 ·
0 评论