mxd 3 years ago
parent
commit
07a5de8ef0
1 changed files with 0 additions and 13 deletions
  1. 0 13
      src/components/panel/footer/magic-toolbar.vue

+ 0 - 13
src/components/panel/footer/magic-toolbar.vue

@@ -66,19 +66,6 @@ const setOpenedToolbars = (type) => {
     }
 }
 setOpenedToolbars('')
-const closeTab = toolbar => {
-    const index = toolbars.findIndex(it => it.id === toolbar.id)
-    if(index > -1){
-        toolbars.splice(index, 1)
-    }
-    navbar.value.select(-1)
-}
-bus.$on(Message.ADD_FOOTER_TOOLBAR, (toolbar) => {
-    if(toolbar.id) {
-        closeTab(toolbar)
-    }
-    navbar.value.select(toolbars.push(toolbar) - 1)
-})
 const closeTab = toolbar => {
   const index = toolbars.findIndex(it => it.id === toolbar.id)
   if(index > -1){