Commit 8ab9a33e by YoMon

代码首次提交

parent 11b567e0
...@@ -3,8 +3,8 @@ import Vuex from 'vuex' ...@@ -3,8 +3,8 @@ import Vuex from 'vuex'
import systemTags from './modules/system-tags' import systemTags from './modules/system-tags'
import usrAuth from './modules/usr-auth' import usrAuth from './modules/usr-auth'
import goodsTags from './modules/goods-tags' import goodsTags from './modules/goods-tags'
// import orderTags from './modules/order-manage-tags' import orderTags from './modules/order-tags'
// import financalTags from './modules/financal-tags' import financalTags from './modules/financal-tags'
import getters from './getters' import getters from './getters'
Vue.use(Vuex) Vue.use(Vuex)
...@@ -15,7 +15,9 @@ const store = () => { ...@@ -15,7 +15,9 @@ const store = () => {
modules: { modules: {
usrAuth, usrAuth,
systemTags, systemTags,
goodsTags goodsTags,
orderTags,
financalTags
}, },
getters getters
}) })
......
...@@ -47,7 +47,7 @@ const financalTags = { ...@@ -47,7 +47,7 @@ const financalTags = {
} }
}, },
F_DEL_ALL_VIEWS: state => { F_DEL_ALL_VIEWS: state => {
state.sVisitedViews = [] state.fVisitedViews = []
state.fCachedViews = [] state.fCachedViews = []
} }
}, },
......
...@@ -6,7 +6,7 @@ const orderTags = { ...@@ -6,7 +6,7 @@ const orderTags = {
mutations: { mutations: {
O_ADD_VISITED_VIEWS: (state, view) => { O_ADD_VISITED_VIEWS: (state, view) => {
if (state.oVisitedViews.some(v => v.path === view.path)) return if (state.oVisitedViews.some(v => v.path === view.path)) return
// if (view.path === '/') return if (view.path === '/') return
state.oVisitedViews.push( state.oVisitedViews.push(
Object.assign({}, view, { Object.assign({}, view, {
title: view.meta.title || 'no-name' title: view.meta.title || 'no-name'
...@@ -58,7 +58,7 @@ const orderTags = { ...@@ -58,7 +58,7 @@ const orderTags = {
oDelVisitedViews({ commit, state }, view) { oDelVisitedViews({ commit, state }, view) {
return new Promise(resolve => { return new Promise(resolve => {
commit('O_DEL_VISITED_VIEWS', view) commit('O_DEL_VISITED_VIEWS', view)
resolve([...state.visitedViews]) resolve([...state.oVisitedViews])
}) })
}, },
oDelOthersViews({ commit, state }, view) { oDelOthersViews({ commit, state }, view) {
...@@ -76,4 +76,3 @@ const orderTags = { ...@@ -76,4 +76,3 @@ const orderTags = {
} }
} }
export default 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