|
@@ -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){
|