摘要:
axiosConfig.js,需要请求的地方引入即可 阅读全文
摘要:
闲言少叙,单刀直入 /build/env.js看到如下代码 当我们打包执行命令 会发现 此时你会一脸迷糊对吧, 看下/libs/util.js中,疑窦顿消。。。 util.ajax = axios.create({ baseURL: ajaxUrl, timeout: 30000, withCred 阅读全文
摘要:
需要先在,main.js中引用 import Components from './components'; Vue.use(Components); /src/components 下index.js import myTips from './myTips';// 提示 const compon 阅读全文