fix(接口测试): 修复sql的test页面显示前置sql数据源显示错误的缺陷
--bug=1027594 --user=王孝刚 【接口测试】test-前置sql-选择运行 环境和数据源-更新api接口-再次进入查看-sql环境为空 https://www.tapd.cn/55049933/s/1390005
This commit is contained in:
parent
e76a5a37f3
commit
2aaf7c00fb
|
@ -220,6 +220,9 @@ export default {
|
|||
parseEnvironment(environment);
|
||||
// 找到原始环境和数据源名称
|
||||
if (environment.id === this.request.environmentId) {
|
||||
if (!environmentId) {
|
||||
environmentId = environment.id;
|
||||
}
|
||||
if (environment.config && environment.config.databaseConfigs) {
|
||||
environment.config.databaseConfigs.forEach((item) => {
|
||||
if (item.id === this.request.dataSourceId) {
|
||||
|
|
Loading…
Reference in New Issue