fix(接口测试): 修复场景点击caseID未跳转的缺陷

--bug=1033075 --user=王孝刚 【接口测试】接口场景-导入一个case-点击caseID-未跳转有报错
https://www.tapd.cn/55049933/s/1438564
This commit is contained in:
wxg0103 2023-11-21 15:15:41 +08:00 committed by wxg0103
parent dc0c60c6f5
commit 66d96d2acc
3 changed files with 6 additions and 4 deletions

View File

@ -51,9 +51,8 @@ public class JSONSchemaBuilder {
if (object.get(PropertyConstant.TYPE).getAsString().equals(PropertyConstant.ARRAY)) {
analyzeProperty(rootObj, PropertyConstant.MS_OBJECT, object, map);
} else if (!object.get(PropertyConstant.TYPE).getAsString().equals(PropertyConstant.OBJECT) && !(object instanceof JsonObject)) {
String asString = object.getAsString();
analyzeProperty(rootObj, object.getAsString(), object, map);
} else {
} else if (object instanceof JsonObject){
formatObject(map, object, rootObj);
}
}

View File

@ -53,8 +53,10 @@ public class JSONSchemaParser {
&& object.get(PropertyConstant.TYPE).getAsString().equals(PropertyConstant.ARRAY)) {
analyzeProperty(rootObj, PropertyConstant.MS_OBJECT, object, processMap);
} else if (object.has(PropertyConstant.TYPE)
&& !object.get(PropertyConstant.TYPE).getAsString().equals(PropertyConstant.OBJECT)) {
&& !object.get(PropertyConstant.TYPE).getAsString().equals(PropertyConstant.OBJECT) && !(object instanceof JsonObject)) {
analyzeProperty(rootObj, object.getAsString(), object, processMap);
} else if (object instanceof JsonObject){
analyzeProperty(rootObj, PropertyConstant.MS_OBJECT, object, processMap);
}
}

View File

@ -1,7 +1,8 @@
import { get } from 'metersphere-frontend/src/plugins/request';
export function getCurrentByResourceId(id) {
return get('/api/current/user/' + id, () => {});
console.log(id);
return get('/api/current/user/' + id);
}
export function getProjectMember() {