0.0.1 • Published 3 years ago
wiki-yunwei v0.0.1
使用方法
npm i wiki-yunwei // 安装
// maim.js
import service from 'wiki-yunwei' // 开发环境配置项
Vue.prototype.$axios = service
// domo
this.$axios.get('路由地址',{'传递参数'}).then(res=>{
console.log(res); // 返回结果
this.$axios.clearToken(); // 退出登录成功后调取清除token方法(该方法退出登录时调取)
}).catch((e) => {
console.log(e,'错误返回');
});
0.0.1
3 years ago