Sendya 5 жил өмнө
parent
commit
e1e4ebb009

+ 6 - 0
src/components/MultiTab/index.js

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

+ 1 - 1
src/views/dashboard/TestWork.vue

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