Commit 32cf97c908ec3f6042d747936c54ec4c6ac7da2a
Merge branch 'fix/configuration-component' into 'main_dev'
fix: 修复组态未选择时直接访问 See merge request yunteng/thingskit-view!145
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -57,6 +57,8 @@ watch( | @@ -57,6 +57,8 @@ watch( | ||
57 | () => props.chartConfig.option.dataset, | 57 | () => props.chartConfig.option.dataset, |
58 | (newData: string) => { | 58 | (newData: string) => { |
59 | const { dataset, publicId, organizationId, platform, isShare } = props.chartConfig.option as typeof typeOption | 59 | const { dataset, publicId, organizationId, platform, isShare } = props.chartConfig.option as typeof typeOption |
60 | + | ||
61 | + if(!dataset) return | ||
60 | iframeLink.value = createScadaPageLink({ id: dataset, platform, publicId, organizationId, }, isShare ? ScadaModeEnum.SHARE : ScadaModeEnum.LIGHTBOX, false) | 62 | iframeLink.value = createScadaPageLink({ id: dataset, platform, publicId, organizationId, }, isShare ? ScadaModeEnum.SHARE : ScadaModeEnum.LIGHTBOX, false) |
61 | }, | 63 | }, |
62 | { | 64 | { |