mirror of
https://github.com/romancm/gamebrary
synced 2024-11-12 22:47:14 +00:00
Update mutation
This commit is contained in:
parent
ea990157de
commit
b9473400a4
1 changed files with 2 additions and 3 deletions
|
@ -63,8 +63,8 @@ export default {
|
|||
state.wallpapers = wallpapers;
|
||||
},
|
||||
|
||||
REMOVE_WALLPAPER(state, ref) {
|
||||
const wallpaperIndex = state.wallpapers.findIndex(wallpaper => wallpaper.ref === ref);
|
||||
REMOVE_WALLPAPER(state, fullPath) {
|
||||
const wallpaperIndex = state.wallpapers.findIndex(wallpaper => wallpaper.fullPath === fullPath);
|
||||
|
||||
state.wallpapers.splice(wallpaperIndex, 1);
|
||||
},
|
||||
|
@ -136,7 +136,6 @@ export default {
|
|||
},
|
||||
|
||||
SET_USER(state, data) {
|
||||
console.log('boom?', data);
|
||||
const [{ providerId }] = data.providerData;
|
||||
|
||||
state.user = {
|
||||
|
|
Loading…
Reference in a new issue