feat: 新增热力图mock,解决热力图无法响应式更新的问题

This commit is contained in:
奔跑的面条
2022-09-17 12:12:22 +08:00
parent 3fc6012145
commit cfa7f59b0b
6 changed files with 273 additions and 8 deletions
+6
View File
@@ -12,6 +12,7 @@ export const imageUrl = '/mock/image'
export const rankListUrl = '/mock/rankList'
export const scrollBoardUrl = '/mock/scrollBoard'
export const radarUrl = '/mock/radarData'
export const heatMapUrl = '/mock/heatMapData'
const mockObject: MockMethod[] = [
{
@@ -61,6 +62,11 @@ const mockObject: MockMethod[] = [
method: RequestHttpEnum.GET,
response: () => test.fetchRadar
},
{
url: heatMapUrl,
method: RequestHttpEnum.GET,
response: () => test.fetchHeatmap
}
]
export default mockObject