Commit 0f13f3c46c51e96e722f22e2f39a40e72c33e4e4
1 parent
38f8e17d
feat(src/packages): 信息下的单个摄像头 修改报错问题
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -28,8 +28,8 @@ const option = shallowReactive({ |
28 | 28 | watch( |
29 | 29 | () => dataset?.value, |
30 | 30 | (newData: string) => { |
31 | - if (url.value) { | |
32 | - option.dataset = url.value | |
31 | + if (url?.value) { | |
32 | + option.dataset = url?.value | |
33 | 33 | } else { |
34 | 34 | option.dataset = newData |
35 | 35 | } | ... | ... |