fix loading Skeleton
This commit is contained in:
parent
ff6101067e
commit
016132096e
63 changed files with 3468 additions and 3452 deletions
|
|
@ -9,6 +9,8 @@ import { useCounterMixin } from "./mixin";
|
|||
import type { ProfileData, DataProfile } from "@/interface/Main";
|
||||
|
||||
export const useDataStore = defineStore("dataMain", () => {
|
||||
const isLoadingMenu = ref<boolean>(false);
|
||||
const isLoadingProfile = ref<boolean>(false);
|
||||
const dataProfile = ref<any>();
|
||||
const storeRegistry = useRegistryInFormationStore();
|
||||
const $q = useQuasar();
|
||||
|
|
@ -102,6 +104,7 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
}
|
||||
|
||||
async function getData(dataPerson: any) {
|
||||
isLoadingProfile.value = true;
|
||||
const data = await dataPerson;
|
||||
dataprofilePosition.value = data;
|
||||
profileId.value = data.profileId;
|
||||
|
|
@ -130,9 +133,11 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
formData.org = findOrgName(data);
|
||||
storeRegistry.profileId = data.profileId;
|
||||
storeRegistry.citizenId = data.citizenId;
|
||||
isLoadingProfile.value = false;
|
||||
}
|
||||
|
||||
async function getProFileType() {
|
||||
isLoadingMenu.value = true;
|
||||
if (officerType.value == "") {
|
||||
await http
|
||||
.get(config.API.proFileType)
|
||||
|
|
@ -144,6 +149,8 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
messageError($q, e);
|
||||
});
|
||||
}
|
||||
|
||||
isLoadingMenu.value = false;
|
||||
return convertEmType(officerType.value);
|
||||
}
|
||||
|
||||
|
|
@ -172,6 +179,8 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
dataProfile,
|
||||
profileId,
|
||||
dataprofilePosition,
|
||||
isLoadingMenu,
|
||||
isLoadingProfile,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue