add:when active tabs closed will go to last path
This commit is contained in:
		@@ -32,14 +32,17 @@ const app = {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  actions: {
 | 
			
		||||
    ToggleSideBar: ({ commit }) => {
 | 
			
		||||
    ToggleSideBar({ commit }) {
 | 
			
		||||
      commit('TOGGLE_SIDEBAR')
 | 
			
		||||
    },
 | 
			
		||||
    addVisitedViews: ({ commit }, view) => {
 | 
			
		||||
    addVisitedViews({ commit }, view) {
 | 
			
		||||
      commit('ADD_VISITED_VIEWS', view)
 | 
			
		||||
    },
 | 
			
		||||
    delVisitedViews: ({ commit }, view) => {
 | 
			
		||||
      commit('DEL_VISITED_VIEWS', view)
 | 
			
		||||
    delVisitedViews({ commit, state }, view) {
 | 
			
		||||
      return new Promise((resolve) => {
 | 
			
		||||
        commit('DEL_VISITED_VIEWS', view)
 | 
			
		||||
        resolve([...state.visitedViews])
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user