新增 返回控制台按钮

This commit is contained in:
Suwings 2022-01-23 20:07:04 +08:00
parent c114cc1d0c
commit 4ecf269e3c
2 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,9 @@
<el-button size="small" @click="back" v-if="!backType">
<i class="el-icon-pie-chart"></i> 回到文件列表
</el-button>
<!-- <el-button size="small" @click="backTerminal" plain v-if="backType == 1">
回到控制台
</el-button> -->
</ItemGroup>
</div>
<div>
@ -101,6 +104,11 @@ export default {
await this.render();
this.$message({ message: "已刷新", type: "success" });
},
async backTerminal() {
this.$router.push({
path: `/terminal/${this.serviceUuid}/${this.instanceUuid}/`
});
},
async back() {
this.$router.push({
path: `/file/${this.serviceUuid}/${this.instanceUuid}/`,

View File

@ -34,7 +34,7 @@
<div class="row-mb">
<ItemGroup>
<el-button type="success" size="small" @click="save">保存配置</el-button>
<el-button type="danger" size="small" @click="rf">放弃并刷新</el-button>
<el-button type="danger" size="small" @click="rf">重新加载</el-button>
<el-button size="small" @click="back">回到配置文件列表</el-button>
</ItemGroup>
</div>