mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 10:12:26 +00:00
优化
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2018-present chenyc
|
Copyright (c) 2018-present 广州擎勤网络科技有限公司
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -274,15 +274,15 @@ npm run dev
|
|||||||
浏览器访问 http://localhost:8067
|
浏览器访问 http://localhost:8067
|
||||||
|
|
||||||
#### 登录相关
|
#### 登录相关
|
||||||
登录api,对接后台接口有两种方式,分别为对接统一认证中心、对接xm-backend
|
登录api,对接后台接口有两种方式,分别为对接统一认证中心、对接mdp-lcode-backend
|
||||||
默认对接xm-backend中的登录模块,如果想切换,更改[mdp_config.js中的getOauth2LoginContext函数即可](src/api/mdp_pub/mdp_config.js)
|
默认对接mdp-lcode-backend中的登录模块,如果想切换,更改[mdp_config.js中的getOauth2LoginContext函数即可](src/api/mdp_pub/mdp_config.js)
|
||||||
- 对接统一认证中心进行登录
|
- 对接统一认证中心进行登录
|
||||||
```js
|
```js
|
||||||
getOauth2LoginContext:function(){
|
getOauth2LoginContext:function(){
|
||||||
return "oauth2client"
|
return "oauth2client"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- 对接xm-backend进行登录
|
- 对接mdp-lcode-backend进行登录
|
||||||
```js
|
```js
|
||||||
getOauth2LoginContext:function(){
|
getOauth2LoginContext:function(){
|
||||||
return "lcode"
|
return "lcode"
|
||||||
|
|||||||
Reference in New Issue
Block a user