Commit 0ac5b5663999a803aca759500e54b1c33a81258e
1 parent
5f4534fc
feat(src/views): 修复打包类型错误,错误组件,翻牌组件
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 |