Commit 8ab9a33e by YoMon

代码首次提交

parent 11b567e0
......@@ -3,8 +3,8 @@ import Vuex from 'vuex'
import systemTags from './modules/system-tags'
import usrAuth from './modules/usr-auth'
import goodsTags from './modules/goods-tags'
// import orderTags from './modules/order-manage-tags'
// import financalTags from './modules/financal-tags'
import orderTags from './modules/order-tags'
import financalTags from './modules/financal-tags'
import getters from './getters'
Vue.use(Vuex)
......@@ -15,7 +15,9 @@ const store = () => {
modules: {
usrAuth,
systemTags,
goodsTags
goodsTags,
orderTags,
financalTags
},
getters
})
......
......@@ -47,7 +47,7 @@ const financalTags = {
}
},
F_DEL_ALL_VIEWS: state => {
state.sVisitedViews = []
state.fVisitedViews = []
state.fCachedViews = []
}
},
......
......@@ -6,7 +6,7 @@ const orderTags = {
mutations: {
O_ADD_VISITED_VIEWS: (state, view) => {
if (state.oVisitedViews.some(v => v.path === view.path)) return
// if (view.path === '/') return
if (view.path === '/') return
state.oVisitedViews.push(
Object.assign({}, view, {
title: view.meta.title || 'no-name'
......@@ -58,7 +58,7 @@ const orderTags = {
oDelVisitedViews({ commit, state }, view) {
return new Promise(resolve => {
commit('O_DEL_VISITED_VIEWS', view)
resolve([...state.visitedViews])
resolve([...state.oVisitedViews])
})
},
oDelOthersViews({ commit, state }, view) {
......@@ -76,4 +76,3 @@ const orderTags = {
}
}
export default orderTags
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment