Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
77596a58
Commit
77596a58
authored
Dec 29, 2021
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复核
parent
d2607a36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletions
+33
-1
Transaction.js
src/store/Transaction.js
+30
-0
index.js
src/store/index.js
+3
-1
No files found.
src/store/Transaction.js
0 → 100644
View file @
77596a58
const
state
=
{
operateFuns
:
{},
};
const
mutations
=
{
/**
*
* @param {Object} state
* @param {Object} funs
* @returns
*/
ADD_OPERATE_FUN
(
state
,
funs
)
{
const
id
=
Symbol
(
"id"
);
state
.
operateFuns
[
id
]
=
funs
;
return
id
;
},
};
const
actions
=
{
setOperateFuns
({
state
},
funs
)
{
state
.
commit
(
"ADD_OPERATE_FUN"
,
funs
);
},
};
export
default
{
namespaced
:
true
,
state
,
mutations
,
actions
,
};
src/store/index.js
View file @
77596a58
...
...
@@ -3,6 +3,7 @@ import UserContext from "./UserContext"
import
Status
from
"./Status"
import
Swift
from
"./Swift"
import
TagsView
from
"./TagsView"
import
Transaction
from
"./Transaction"
;
import
Vuex
from
'vuex'
import
Vue
from
'vue'
...
...
@@ -14,7 +15,8 @@ const store = new Vuex.Store({
UserContext
:
UserContext
,
Status
:
Status
,
Swift
:
Swift
,
TagsView
:
TagsView
TagsView
:
TagsView
,
Transaction
:
Transaction
}
})
...
...
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