fix: solve a case where fields stays empty in EditIdentity
This commit is contained in:
@@ -285,12 +285,17 @@ const baseIdentity: IPerson = {
|
|||||||
|
|
||||||
const identity = ref<IPerson>(baseIdentity);
|
const identity = ref<IPerson>(baseIdentity);
|
||||||
|
|
||||||
watch(person, () => {
|
watch(
|
||||||
console.debug("person changed", person.value);
|
person,
|
||||||
if (person.value) {
|
() => {
|
||||||
identity.value = { ...person.value };
|
console.debug("person changed", person.value);
|
||||||
}
|
if (person.value) {
|
||||||
});
|
identity.value = { ...person.value };
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// We need to call "immediate: true" because when first loading update/xxx, there is no change to person
|
||||||
|
{ immediate: true }
|
||||||
|
);
|
||||||
|
|
||||||
const avatarMaxSize = useAvatarMaxSize();
|
const avatarMaxSize = useAvatarMaxSize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user