This commit is contained in:
parent
a3f074ea0a
commit
942efc319a
|
@ -20,28 +20,12 @@ const headerMounted = ref(false);
|
||||||
export function useState() {
|
export function useState() {
|
||||||
function getUser() {
|
function getUser() {
|
||||||
return computed(() => {
|
return computed(() => {
|
||||||
return {
|
return user.value;
|
||||||
id: user.value.id,
|
|
||||||
name: user.value.name,
|
|
||||||
nickname: user.value.nickname,
|
|
||||||
lang: user.value.lang,
|
|
||||||
darkMode: user.value.darkMode,
|
|
||||||
companyFk: user.value.companyFk,
|
|
||||||
warehouseFk: user.value.warehouseFk,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setUser(data) {
|
function setUser(data) {
|
||||||
user.value = {
|
user.value = data;
|
||||||
id: data.id,
|
|
||||||
name: data.name,
|
|
||||||
nickname: data.nickname,
|
|
||||||
lang: data.lang,
|
|
||||||
darkMode: data.darkMode,
|
|
||||||
companyFk: data.companyFk,
|
|
||||||
warehouseFk: data.warehouseFk,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRoles() {
|
function getRoles() {
|
||||||
|
|
Loading…
Reference in New Issue