mali-box-header
boxheader
best mali
Table of Contents
Install
npm i mali-box-header --save
Usage
// BoxHeader
import BoxHeader from "mali-box-header"
import VueLetterAvatar from "vue-letter-avatar"
Vue.use(BoxHeader)
Vue.use(VueLetterAvatar)
// use with need
1. auth-redirect.vue insert `<box-header />`
2. layout/index.vue insert `<box-header />`
3. permission.js 处理登陆逻辑
服务端配置:
// 配置三个头部地址
// SY_APPLICATION_ENV : 环境
// SY_APPLICATION_BOX_API_URL : box api 地址
// SY_APPLICATION_BOX_URL : box 后台 地址
// SY_APPLICATION_LOGIN_URL : 登陆地址
// SY_APPLICATION_API_URL : 自身 api 地址
header 会自动写入到 localstage
app_env
app_box_api_url
app_box_url
Publish
npm run publish
Contributing
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2020 mali
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.13 | ^2.5.11 | MIT | |
| 1.1.12 | ^2.5.11 | MIT | |
| 1.1.11 | ^2.5.11 | MIT | |
| 1.1.10 | ^2.5.11 | MIT | |
| 1.1.9 | ^2.5.11 | MIT | |
| 1.1.8 | ^2.5.11 | MIT | |
| 1.1.7 | ^2.5.11 | MIT | |
| 1.1.6 | ^2.5.11 | MIT | |
| 1.1.5 | ^2.5.11 | MIT | |
| 1.1.4 | ^2.5.11 | MIT | |
| 1.1.3 | ^2.5.11 | MIT | |
| 1.1.2 | ^2.5.11 | MIT | |
| 1.1.1 | ^2.5.11 | MIT | |
| 1.0.11 | ^2.5.11 | MIT | |
| 1.0.10 | ^2.5.11 | MIT | |
| 1.0.9 | ^2.5.11 | MIT | |
| 1.0.8 | ^2.5.11 | MIT | |
| 1.0.7 | ^2.5.11 | MIT | |
| 1.0.6 | ^2.5.11 | MIT | |
| 1.0.5 | ^2.5.11 | MIT | |
| 1.0.4 | ^2.5.11 | MIT | |
| 1.0.3 | ^2.5.11 | MIT | |
| 1.0.2 | ^2.5.11 | MIT | |
| 1.0.1 | ^2.5.11 | MIT | |
| 1.0.0 | ^2.5.11 | MIT |