Browse Source

修复关闭右侧的bug

main
pixel 5 years ago
parent
commit
86b2ed034d
  1. 6
      web/src/view/layout/aside/historyComponent/history.vue
  2. 2
      web/src/view/systemTools/autoCode/index.vue

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

@ -19,8 +19,8 @@
<!--自定义右键菜单html代码-->
<ul :style="{left:left+'px',top:top+'px'}" class="contextmenu" v-show="contextMenuVisible">
<li @click="closeAll">关闭所有</li>
<li @click="closeLeft">关闭左</li>
<li @click="closeRight">关闭右</li>
<li @click="closeLeft">关闭左</li>
<li @click="closeRight">关闭右</li>
<li @click="closeOther">关闭其他</li>
</ul>
</div>
@ -118,7 +118,7 @@ export default {
const activeIndex = this.historys.findIndex(
item => item.name == this.activeValue
)
this.historys.splice(leftIndex, this.historys.length)
this.historys.splice(leftIndex+1, this.historys.length)
if (leftIndex < activeIndex) {
this.$router.push({ name: this.rightActive })
}

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

@ -11,7 +11,7 @@
<el-form-item label="文件名称" prop="packageName">
<el-input v-model="form.packageName"></el-input>
</el-form-item>
<el-form-item label="自行创建api入库">
<el-form-item>
<el-checkbox v-model="form.autoCreateApiToSql">自动创建api</el-checkbox>
</el-form-item>
</el-form>

Loading…
Cancel
Save