Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin-yweb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yfront
admin-yweb
Commits
8ab9a33e
Commit
8ab9a33e
authored
Aug 28, 2018
by
YoMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码首次提交
parent
11b567e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
store/index.js
+5
-3
store/modules/financal-tags.js
+1
-1
store/modules/order-tags.js
+2
-4
No files found.
store/index.js
View file @
8ab9a33e
...
...
@@ -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
})
...
...
store/modules/financal-tags.js
View file @
8ab9a33e
...
...
@@ -47,7 +47,7 @@ const financalTags = {
}
},
F_DEL_ALL_VIEWS
:
state
=>
{
state
.
s
VisitedViews
=
[]
state
.
f
VisitedViews
=
[]
state
.
fCachedViews
=
[]
}
},
...
...
store/modules/order-
manage-
tags.js
→
store/modules/order-tags.js
View file @
8ab9a33e
...
...
@@ -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
.
v
isitedViews
])
resolve
([...
state
.
oV
isitedViews
])
})
},
oDelOthersViews
({
commit
,
state
},
view
)
{
...
...
@@ -76,4 +76,3 @@ const orderTags = {
}
}
export
default
orderTags
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment