mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
[improvement][headless-fe] Revamped the interaction for semantic modeling routing and successfully implemented the switching between dimension and dataset management. (#1934)
Co-authored-by: tristanliu <tristanliu@tencent.com>
This commit is contained in:
@@ -50,9 +50,6 @@ export function getDimensionList(data: any): Promise<any> {
|
||||
...(modelId ? { modelIds: [modelId] } : {}),
|
||||
},
|
||||
};
|
||||
if (getRunningEnv() === 'chat') {
|
||||
return request.post(`${process.env.CHAT_API_BASE_URL}conf/dimension/page`, queryParams);
|
||||
}
|
||||
return request.post(`${process.env.API_BASE_URL}dimension/queryDimension`, queryParams);
|
||||
}
|
||||
|
||||
@@ -628,6 +625,12 @@ export function getDataSetList(domainId: number): Promise<any> {
|
||||
});
|
||||
}
|
||||
|
||||
export function getDataSetDetail(id: number): Promise<any> {
|
||||
return request(`${process.env.API_BASE_URL}dataSet/${id}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
export function createView(data: any): Promise<any> {
|
||||
return request(`${process.env.API_BASE_URL}dataSet`, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user