596130e9 by 任超

style:store

1 parent 0a002fc6
1 const state = { 1 const state = {
2 visitedViews: [], 2 visitedViews: []
3 cachedViews: ['leaseDetails']
4 } 3 }
5 4
6 const mutations = { 5 const mutations = {
...@@ -54,7 +53,6 @@ const actions = { ...@@ -54,7 +53,6 @@ const actions = {
54 delView ({ dispatch, state }, view) { 53 delView ({ dispatch, state }, view) {
55 return new Promise(resolve => { 54 return new Promise(resolve => {
56 dispatch('delVisitedView', view) 55 dispatch('delVisitedView', view)
57 dispatch('delCachedView', view)
58 resolve({ 56 resolve({
59 visitedViews: [...state.visitedViews], 57 visitedViews: [...state.visitedViews],
60 }) 58 })
......