fix: 增加 mock api,修复预览模式下动态数据更新问题

This commit is contained in:
tnt group
2022-09-22 09:01:19 +08:00
parent 20f720bf27
commit 96384d7b39
3 changed files with 57 additions and 3 deletions
+6
View File
@@ -14,6 +14,7 @@ export const scrollBoardUrl = '/mock/scrollBoard'
export const radarUrl = '/mock/radarData'
export const heatMapUrl = '/mock/heatMapData'
export const scatterBasicUrl = '/mock/scatterBasic'
export const wordCloudUrl = '/mock/wordCloud'
const mockObject: MockMethod[] = [
{
@@ -73,6 +74,11 @@ const mockObject: MockMethod[] = [
method: RequestHttpEnum.GET,
response: () => test.fetchScatterBasic
},
{
url: wordCloudUrl,
method: RequestHttpEnum.GET,
response: () => test.fetchWordCloud
}
]
export default mockObject