mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 22:46:49 +00:00
add drill down dimensions and metric period compare and modify layout (#22)
* [feature](webapp) add drill down dimensions and metric period compare and modify layout * [feature](webapp) add drill down dimensions and metric period compare and modify layout --------- Co-authored-by: williamhliu <williamhliu@tencent.com>
This commit is contained in:
@@ -20,6 +20,7 @@ axiosInstance.interceptors.request.use(
|
||||
const token = getToken();
|
||||
if (token && config?.headers) {
|
||||
config.headers.Auth = `Bearer ${token}`;
|
||||
config.headers.Authorization = `Bearer ${token}`;
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import axios from './axiosInstance';
|
||||
import { ChatContextType, HistoryType, MsgDataType, SearchRecommendItem } from '../common/type';
|
||||
import { ChatContextType, DrillDownDimensionType, HistoryType, MsgDataType, SearchRecommendItem } from '../common/type';
|
||||
import { QueryDataType } from '../common/type';
|
||||
|
||||
const DEFAULT_CHAT_ID = 0;
|
||||
const DEFAULT_CHAT_ID = 999;
|
||||
|
||||
const prefix = '/api';
|
||||
|
||||
@@ -74,4 +74,8 @@ export function queryEntities(entityId: string | number, domainId: number) {
|
||||
entityId,
|
||||
domainId,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function queryDrillDownDimensions(domainId: number) {
|
||||
return axios.get<Result<{ dimensions: DrillDownDimensionType[] }>>(`${prefix}/chat/recommend/metric/${domainId}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user