npm install mini-red
import Red from 'mini-red'
- options可选 用于配置各环境登录接口,token名称等
- 默认 options = {
- tokenName: 'workbenchToken', //token名
- evn: { //接口host选项
-
dev: 'http://sso.dasouche-inc.net/',
-
prepub: 'http://sso.prepub.souche.com/',
-
prod: 'http://sso.souche.net/'
- },
- api: 'accountApi/login.json' //接口api
- }
Vue.use(Red, options)