vue-kst-auth

3,764
Install
npm install vue-kst-auth
Latest Version:3.1.6
Older releases:2
Last Updated:Jul 20, 2026
Links: npm
Maintainer: joe3118601679

kst-auth

安装

yarn add vue-kst-auth

导出说明

export { _axios, baseConfig };
_axios // 封装后的axios 自定义headers,返回数据的过滤
baseConfig // 基础数据(登录状态等)

使用

在main.ts中
import { _axios, baseConfig } from "vue-kst-auth"
// 可以将_axios作为vue全局属性来使用
Vue.prototype.$axios = _axios;
在组建中能够直接使用,请求会添加headers信息
this.$axios.get("").then(res => {})
this.$axios.post("").then(res => {})

Version History

Version Released Vue License
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2