feat: 处理请求展示的位置

This commit is contained in:
奔跑的面条
2022-07-16 20:57:01 +08:00
parent d1de5f0c4c
commit 740f471ff4
8 changed files with 142 additions and 103 deletions
+9 -2
View File
@@ -37,8 +37,15 @@ export const useChartDataFetch = (
} = toRefs(targetComponent.request)
// 非请求类型
if (requestDataType.value !== RequestDataTypeEnum.AJAX || !requestInterval) return
if (
requestDataType.value !== RequestDataTypeEnum.AJAX ||
!requestInterval ||
!requestInterval.value ||
!targetInterval ||
!targetInterval.value
)
return
try {
// 处理地址
// @ts-ignore