0.1.3 • Published 4 years ago

we-permission v0.1.3

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Package we-permission

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)

Prerequisites

  • use package we-axios.
  • 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'
};
0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago