Skip to content

Commit 2cbd216

Browse files
author
pixel
committed
修复关闭右侧的bug
1 parent cb51890 commit 2cbd216

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/view/layout/aside/historyComponent/history.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<!--自定义右键菜单html代码-->
2020
<ul :style="{left:left+'px',top:top+'px'}" class="contextmenu" v-show="contextMenuVisible">
2121
<li @click="closeAll">关闭所有</li>
22-
<li @click="closeLeft">关闭左边</li>
23-
<li @click="closeRight">关闭右边</li>
22+
<li @click="closeLeft">关闭左侧</li>
23+
<li @click="closeRight">关闭右侧</li>
2424
<li @click="closeOther">关闭其他</li>
2525
</ul>
2626
</div>
@@ -118,7 +118,7 @@ export default {
118118
const activeIndex = this.historys.findIndex(
119119
item => item.name == this.activeValue
120120
)
121-
this.historys.splice(leftIndex, this.historys.length)
121+
this.historys.splice(leftIndex+1, this.historys.length)
122122
if (leftIndex < activeIndex) {
123123
this.$router.push({ name: this.rightActive })
124124
}

web/src/view/systemTools/autoCode/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<el-form-item label="文件名称" prop="packageName">
1212
<el-input v-model="form.packageName"></el-input>
1313
</el-form-item>
14-
<el-form-item label="自行创建api入库">
14+
<el-form-item>
1515
<el-checkbox v-model="form.autoCreateApiToSql">自动创建api</el-checkbox>
1616
</el-form-item>
1717
</el-form>

0 commit comments

Comments
 (0)