瀏覽代碼

修复bug

shaogen1995 4 年之前
父節點
當前提交
feae9809d2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/views/tab1/tab1_edit.vue

+ 1 - 0
src/views/tab1/tab1_edit.vue

@@ -756,6 +756,7 @@ export default {
     },
     // 上面的tab栏切换
     tabCut (index) {
+      if (index === this.topTabInd) return
       // console.log(999, index)
       if (this.cuontChange1 > 1 || this.cuontChange2 > 1 || this.cuontChange3 > 1 || this.cuontChange4 > 1 || this.cuontChange5 > 1) {
         this.$confirm('本次编辑未保存,是否继续跳转页面', '提示', {