Cleaning Code, moving functions...
This commit is contained in:
@@ -122,7 +122,6 @@ namespace Getters {
|
||||
|
||||
})
|
||||
|
||||
|
||||
if (UserStore.state.isAdmin) {
|
||||
state.menulinks = {
|
||||
Dashboard: {
|
||||
@@ -175,6 +174,8 @@ namespace Getters {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('___ return getMenu ', state.menulinks)
|
||||
|
||||
return state.menulinks
|
||||
|
||||
}, 'getmenu')
|
||||
@@ -284,7 +285,7 @@ namespace Mutations {
|
||||
console.log('config', config)
|
||||
if (config) {
|
||||
config.value = String(showtype)
|
||||
Todos.state.showtype = parseInt(config.value)
|
||||
Todos.state.showtype = parseInt(config.value, 10)
|
||||
} else {
|
||||
Todos.state.showtype = showtype
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user