apolloconfig / apolloconfig/apollo
前端portal 获取环境env接口使用错误。错误使用openap接口
- Lenguaje dominante
- Java
- Estrellas
- 29.8k
- Forks
- 10.2k
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 4
Descripción
- [ ] 我已经检查过[discussions](https://github.com/ctripcorp/apollo/discussions)
- [ ] 我已经搜索过[issues](https://github.com/ctripcorp/apollo/issues)
- [ ] 我已经仔细检查过[FAQ](https://www.apolloconfig.com/#/zh/faq/common-issues-in-deployment-and-development-phase)
**描述bug**
在接入sso的时候,会跳过openapi接口的路径,但是前端如果要是使用openapi的路径会导致无法验证接口。
只会在这种情况先出现环境无法获取的问题。修改接口
appService.service('EnvService', ['$resource', '$q', 'AppUtil', function ($resource, $q, AppUtil) {
var env_resource = $resource(AppUtil.prefixPath() + '/openapi/v1/envs', {}, {
find_all_envs:{
method: 'GET',
isArray: true,
//url: AppUtil.prefixPath() + '/openapi/v1/envs'
url: AppUtil.prefixPath() + '/envs'
}
});
**复现**
通过如下步骤可以复现:
1. 接入sso认证,拦截路由。
2.配置跳过路径,避免api接口和ui接口冲突。
3. 前端调用获取配置文件。
4. 获取环境接口发生报错
**期望**
继续获取env接口
**截图**
如果可以,附上截图来描述你的问题
### 额外的细节和日志
- 版本:
- 错误日志
- 配置:
- 平台和操作系统
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.