优化代码展示

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent bfb3738d69
commit 749d72b513
  1. 3
      fir_client/src/components/user/FirUserProfileCertification.vue
  2. 2
      fir_ser/api/views/login.py

@ -220,7 +220,7 @@
<script>
import {changeInfoFun, getAuthcTokenFun, user_certification} from "@/restful";
import {AvatarUploadUtils, checkphone, geetest} from "@/utils";
import {AvatarUploadUtils, checkphone, geetest, getUserInfoFun} from "@/utils";
export default {
name: "FirUserProfileCertification",
@ -279,6 +279,7 @@
this.$message.success("信息提交成功,正在审核中");
this.cert_edit_flag = false;
this.certification_status = 0;
getUserInfoFun(this);
this.get_user_certification({methods: 'GET', data: {act: 'usercert'}});
}
if (res.data.usercert) {

@ -716,7 +716,7 @@ class CertificationView(APIView):
return self.get(request)
except Exception as e:
logger.error(f"{request.user} UserCertificationInfo save {data} failed Exception: {e}")
res.msg = "数据异常,请检查"
res.msg = "数据异常,或身份证已经被绑定,请检查"
res.code = 1002
return Response(res.dict)

Loading…
Cancel
Save