提交 86b2ed03 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

修复关闭右侧的bug

上级 b008b7ba
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<!--自定义右键菜单html代码--> <!--自定义右键菜单html代码-->
<ul :style="{left:left+'px',top:top+'px'}" class="contextmenu" v-show="contextMenuVisible"> <ul :style="{left:left+'px',top:top+'px'}" class="contextmenu" v-show="contextMenuVisible">
<li @click="closeAll">关闭所有</li> <li @click="closeAll">关闭所有</li>
<li @click="closeLeft">关闭左</li> <li @click="closeLeft">关闭左</li>
<li @click="closeRight">关闭右</li> <li @click="closeRight">关闭右</li>
<li @click="closeOther">关闭其他</li> <li @click="closeOther">关闭其他</li>
</ul> </ul>
</div> </div>
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
const activeIndex = this.historys.findIndex( const activeIndex = this.historys.findIndex(
item => item.name == this.activeValue item => item.name == this.activeValue
) )
this.historys.splice(leftIndex, this.historys.length) this.historys.splice(leftIndex+1, this.historys.length)
if (leftIndex < activeIndex) { if (leftIndex < activeIndex) {
this.$router.push({ name: this.rightActive }) this.$router.push({ name: this.rightActive })
} }
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-form-item label="文件名称" prop="packageName"> <el-form-item label="文件名称" prop="packageName">
<el-input v-model="form.packageName"></el-input> <el-input v-model="form.packageName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="自行创建api入库"> <el-form-item>
<el-checkbox v-model="form.autoCreateApiToSql">自动创建api</el-checkbox> <el-checkbox v-model="form.autoCreateApiToSql">自动创建api</el-checkbox>
</el-form-item> </el-form-item>
</el-form> </el-form>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册