Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0d26533

Browse files
committed
新增 未选择任何守护进程提示
1 parent 439a3b0 commit 0d26533

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/app/views/Instances.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
<div>
8787
<div class="instance-table-warpper">
8888
<div>
89-
<p class="color-red" v-if="!currentRemoteUuid">
90-
未选择任何远程守护进程,请通过这里选择一个地址。若没有任何可选项,请前往“分布式服务”界面进行设置
91-
</p>
89+
<div class="color-red" v-if="!currentRemoteUuid">
90+
&nbsp;错误:未选择任何远程守护进程
91+
</div>
9292
</div>
9393
<div>
9494
<el-pagination
@@ -108,7 +108,7 @@
108108
<div class="notAnyInstanceTip">
109109
<i class="el-icon-guide" style="font-size: 190px"></i>
110110
<div class="sub-title">
111-
<div class="sub-title-title">请在左侧下拉框中选择远程守护进程</div>
111+
<div class="sub-title-title">请在左上方的下拉框中选择远程守护进程</div>
112112
<div class="sub-title-info">
113113
默认可选择 localhost
114114
守护进程,守护进程可以部署在任意主机上,帮助您快速管理多个主机并且分布式部署。
@@ -138,7 +138,7 @@
138138
size="mini"
139139
ref="multipleTable"
140140
@selection-change="selectionChange"
141-
v-show="!notAnyInstance"
141+
v-show="!notAnyInstance && currentRemoteUuid"
142142
>
143143
<el-table-column type="selection" width="55"> </el-table-column>
144144
<el-table-column prop="nickname" label="实例昵称" min-width="240">
@@ -328,6 +328,8 @@ export default {
328328
// 无任何实例时,显示快速创建界面
329329
if (this.instances.length === 0) {
330330
this.notAnyInstance = true;
331+
} else {
332+
this.notAnyInstance = false;
331333
}
332334
} catch (error) {
333335
this.$notify({

0 commit comments

Comments
 (0)