fix bug ==> loading
This commit is contained in:
parent
31755747da
commit
e28e9bc3aa
6 changed files with 12 additions and 27 deletions
|
|
@ -109,19 +109,17 @@ function onEdit(id: string) {
|
|||
|
||||
async function getProfileId() {
|
||||
isLoad.value = true;
|
||||
if (dataStore.profileId) {
|
||||
profilId.value = dataStore.profileId;
|
||||
} else {
|
||||
try {
|
||||
try {
|
||||
if (!dataStore.profileId) {
|
||||
const res = await http.get(config.API.profilePosition());
|
||||
dataStore.profileId = res.data.result.profileId;
|
||||
profilId.value = dataStore.profileId;
|
||||
await getData();
|
||||
} catch (e) {
|
||||
messageError($q, e);
|
||||
} finally {
|
||||
isLoad.value = false;
|
||||
}
|
||||
profilId.value = dataStore.profileId;
|
||||
await getData();
|
||||
} catch (e) {
|
||||
messageError($q, e);
|
||||
} finally {
|
||||
isLoad.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue