|
@@ -67,9 +67,12 @@ export async function getLe5leV(id: string, projection?: any, historyId?: string
|
|
}
|
|
}
|
|
|
|
|
|
export async function getComponents(id: string) {
|
|
export async function getComponents(id: string) {
|
|
- return await axios.post(`/api/data/v.component/get`, {
|
|
|
|
|
|
+ const res = await axios.post(`/api/data/v.component/get`, {
|
|
id,
|
|
id,
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ res.data = JSON.parse(res.data);
|
|
|
|
+ return res;
|
|
}
|
|
}
|
|
|
|
|
|
export async function getComponentsList(data: any, config: any) {
|
|
export async function getComponentsList(data: any, config: any) {
|