bug修复:离职人员无法修改人员信息

hyx_2025-01-13_xgf2.0
liujun 2025-03-10 16:11:42 +08:00
parent 7490db6777
commit 62c6a063ca
1 changed files with 15 additions and 10 deletions

View File

@ -99,10 +99,6 @@
</template>
<script>
import {
getUserInfo,
getEmployedBy, getIDCardDeduplication
} from "../../../api";
import FabButton from "@/components/fab_button/index.vue";
import {getUserInfoV1} from "../../../api/api";
@ -147,12 +143,21 @@ export default {
})
},
async fnGetData() {
let data = await getUserInfoV1(
{
id: this.$store.getters.getUserInfo.USER_ID,
postMethod: 'application/json'
}
)
let data
try {
data = await getUserInfoV1(
{
id: this.$store.getters.getUserInfo.USER_ID,
postMethod: 'application/json'
}
)
}catch (e){
console.log(e)
setTimeout(() => {
uni.navigateBack()
}, 2000)
}
this.info = data.info
//
this.userCardIDPhotoFile = []