Commit aa513de1a486c3c193c5427fdb46b7f85cc1b231
1 parent
249ce625
fix: DEFECT-684 not select virtual component can not action
Showing
1 changed file
with
4 additions
and
0 deletions
@@ -53,6 +53,10 @@ | @@ -53,6 +53,10 @@ | ||
53 | 53 | ||
54 | const handleAddComponent = async (value: Recordable) => { | 54 | const handleAddComponent = async (value: Recordable) => { |
55 | try { | 55 | try { |
56 | + if (!unref(frontId)) { | ||
57 | + createMessage.warning('请选择可视化组件'); | ||
58 | + return; | ||
59 | + } | ||
56 | changeOkLoading(true); | 60 | changeOkLoading(true); |
57 | await addDataComponent({ | 61 | await addDataComponent({ |
58 | boardId: unref(boardId), | 62 | boardId: unref(boardId), |