Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dc82b26f
authored
Sep 14, 2021
by
赖慧粮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(state): 状态数据出发错误修复
parent
d9081658
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
store/lottery.js
+3
-3
No files found.
store/lottery.js
View file @
dc82b26f
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
import
{
getLotteryInfos
,
getLotterySessionList
}
from
'@/api/modules/lottery'
import
{
getLotteryInfos
,
getLotterySessionList
}
from
'@/api/modules/lottery'
import
{
Toast
}
from
'vant'
import
{
Toast
}
from
'vant'
import
{
cloneDeep
}
from
'lodash'
//
import { cloneDeep } from 'lodash'
export
const
state
=
()
=>
({
export
const
state
=
()
=>
({
sessionList
:
[],
// 抽奖场次列表
sessionList
:
[],
// 抽奖场次列表
...
@@ -71,8 +71,8 @@ export const actions = {
...
@@ -71,8 +71,8 @@ export const actions = {
})
})
},
},
updateInfo
({
state
},
val
)
{
updateInfo
({
state
},
val
)
{
const
lotteryInfo
=
cloneDeep
(
state
.
lotteryInfo
)
//
const lotteryInfo = cloneDeep(state.lotteryInfo)
state
.
lotteryInfo
=
{
...
lotteryInfo
,
...
val
}
state
.
lotteryInfo
=
{
...
state
.
lotteryInfo
,
...
val
}
},
},
}
}
export
const
getters
=
{
export
const
getters
=
{
...
...
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