Commit c8c3216f3ffe50ab7cd8db8baf6260cb415e325f
Merge branch 'perf/type-errors' into 'main_dev'
feat(src/views): 修复打包类型错误,错误组件,翻牌组件 See merge request yunteng/thingskit-view!275
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -28,13 +28,13 @@ const { w, h } = toRefs(props.chartConfig.attr) | @@ -28,13 +28,13 @@ const { w, h } = toRefs(props.chartConfig.attr) | ||
28 | const { targetData, chartEditStore } = useTargetData() | 28 | const { targetData, chartEditStore } = useTargetData() |
29 | 29 | ||
30 | const isWebsocket = computed(() => { | 30 | const isWebsocket = computed(() => { |
31 | - const result = query(chartEditStore.getComponentList) | 31 | + const result = query(chartEditStore.getComponentList) as unknown as any |
32 | if (result === false) return false | 32 | if (result === false) return false |
33 | if (!targetData.value) return | 33 | if (!targetData.value) return |
34 | - if (result.id === targetData.value.id) | 34 | + if (result?.id === targetData.value.id) |
35 | return targetData.value.request.requestContentType as RequestContentTypeEnum === RequestContentTypeEnum.WEB_SOCKET | 35 | return targetData.value.request.requestContentType as RequestContentTypeEnum === RequestContentTypeEnum.WEB_SOCKET |
36 | else { | 36 | else { |
37 | - return result.request.requestContentType as RequestContentTypeEnum === RequestContentTypeEnum.WEB_SOCKET | 37 | + return result?.request.requestContentType as RequestContentTypeEnum === RequestContentTypeEnum.WEB_SOCKET |
38 | } | 38 | } |
39 | }) | 39 | }) |
40 | 40 |