we-permission
v0.1.3
Published
What does this package do? 1. get permission from api and set in `Vue.prototype.$permission` 2. register in local storage (with logout remove from local storage)
Downloads
4
Readme
Package we-permission
What does this package do?
- get permission from api and set in
Vue.prototype.$permission
- register in local storage (with logout remove from local storage)
Prerequisites
- [x] use package we-axios.
- [x] use package we-auth.
##install
npm install we-permission
##Usage
use in main:
import Permission from 'we-permission'
Vue.use(Permission, options);
defult Options:
const options = {
api: 'v1/my-permissions'
};