提交 3bb4258c authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 选项卡选择试图有默认选项

上级 82c891d6
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
center center
> >
<div style="width: 100%;min-height: 250px; max-height: 300px; overflow-y: auto;"> <div style="width: 100%;min-height: 250px; max-height: 300px; overflow-y: auto;">
<view-select ref="viewSelect" :select-model="true" /> <view-select v-if="viewDialogVisible" ref="viewSelect" :select-model="true" />
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -161,6 +161,10 @@ export default { ...@@ -161,6 +161,10 @@ export default {
}, },
sureViewSelector() { sureViewSelector() {
const nodes = this.$refs.viewSelect.getCurrentSelected() const nodes = this.$refs.viewSelect.getCurrentSelected()
if (!nodes || nodes.length === 0) {
this.viewDialogVisible = false
return
}
const node = nodes[0] const node = nodes[0]
let component let component
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论