Agregado getter para nombre
This commit is contained in:
parent
af8879eadd
commit
0637b7a208
1 changed files with 3 additions and 0 deletions
3
resources/js/store/modules/login.js
vendored
3
resources/js/store/modules/login.js
vendored
|
@ -124,6 +124,9 @@ const getters = {
|
||||||
default:
|
default:
|
||||||
throw new Error("Url inválida");
|
throw new Error("Url inválida");
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
nombre() {
|
||||||
|
return `${state.grupo_de_compra_elegido}${ getters.urlRol() === 'admin' ? '_admin' : ''}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue