fixing
This commit is contained in:
parent
ec41b55f64
commit
c622df5b58
3 changed files with 19 additions and 11 deletions
|
|
@ -838,7 +838,6 @@ async function saveData(id: string) {
|
|||
*/
|
||||
async function DataSave(id: string) {
|
||||
const data = putData(id);
|
||||
console.log("data==>", data);
|
||||
await http
|
||||
.post(config.API.saveFinish(id), data)
|
||||
.then(() => {
|
||||
|
|
|
|||
|
|
@ -245,16 +245,22 @@ function updatemodalPersonal(modal: boolean) {
|
|||
|
||||
async function fetchProfilePhoto() {
|
||||
await http
|
||||
.get(
|
||||
config.API.fileByFile(
|
||||
"ทะเบียนประวัติ",
|
||||
"โปรไฟล์",
|
||||
personalId.value,
|
||||
`profile-${personalId.value}`
|
||||
)
|
||||
)
|
||||
.get(config.API.orgCheckAvatar(personalId.value))
|
||||
.then(async (res) => {
|
||||
avatarProfile.value = res.data.downloadUrl;
|
||||
if (res.data.result.avatarName) {
|
||||
await http
|
||||
.get(
|
||||
config.API.fileByFile(
|
||||
"ทะเบียนประวัติ",
|
||||
"โปรไฟล์",
|
||||
personalId.value,
|
||||
res.data.result.avatarName
|
||||
)
|
||||
)
|
||||
.then(async (res) => {
|
||||
avatarProfile.value = res.data.downloadUrl;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue