@@ -10,6 +10,12 @@ const api = {
open: function (config) {
events.$emit('open', config)
},
+ /**
+ * close current page
+ */
+ closeCurrentPage: function () {
+ this.close()
+ },
/**
* close route fullPath tab
* @param config
@@ -21,7 +21,7 @@ export default {
name: 'TestWork',
methods: {
handleCloseCurrentTab () {
- this.$multiTab.close()
+ this.$multiTab.closeCurrentPage() // or this.$multiTab.close()
handleOpenTab () {
this.$multiTab.open('/features/task')