refactor: fetch config & warning color
This commit is contained in:
parent
b12b410b2b
commit
4453d563e6
2 changed files with 16 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ html {
|
|||
--positive-fg: 0 0% 100%;
|
||||
--positive-bg: var(--teal-7-hsl);
|
||||
|
||||
--warning-fg: 0 0% 100%;
|
||||
--warning-bg: var(--yellow-6-hsl);
|
||||
|
||||
--gender-male: var(--blue-5-hsl);
|
||||
--gender-female: var(--pink-7-hsl);
|
||||
--customer-corp: var(--purple-11-hsl);
|
||||
|
|
@ -166,6 +169,15 @@ html {
|
|||
background-color: hsl(var(--positive-bg));
|
||||
}
|
||||
|
||||
.app-text-warning {
|
||||
color: hsl(var(--warning-bg));
|
||||
}
|
||||
|
||||
.app-bg-warning {
|
||||
color: hsl(var(--warning-fg));
|
||||
background-color: hsl(var(--warning-bg));
|
||||
}
|
||||
|
||||
.app-text-male {
|
||||
color: hsl(var(--gender-male));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { dialog } from 'stores/utils';
|
|||
import { setLocale } from 'src/utils/datetime';
|
||||
import useUtilsStore from 'stores/utils';
|
||||
import useMyBranchStore from 'stores/my-branch';
|
||||
import { useConfigStore } from 'src/stores/config';
|
||||
|
||||
const useMyBranch = useMyBranchStore();
|
||||
const { fetchListMyBranch } = useMyBranch;
|
||||
|
|
@ -38,6 +39,7 @@ const $q = useQuasar();
|
|||
const loaderStore = useLoader();
|
||||
const utilsStore = useUtilsStore();
|
||||
const optionStore = useOptionStore();
|
||||
const configStore = useConfigStore();
|
||||
|
||||
const { visible } = storeToRefs(loaderStore);
|
||||
const { t, locale } = useI18n({ useScope: 'global' });
|
||||
|
|
@ -144,6 +146,8 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(async () => {
|
||||
await configStore.getConfig();
|
||||
|
||||
await fetchListMyBranch(getUserId() ?? '');
|
||||
leftDrawerOpen.value = $q.screen.gt.xs ? true : false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue