zhaoke 2 жил өмнө
parent
commit
88fe002f2b

+ 4 - 2
src/views/accountManagement/components/accountHome.vue

@@ -196,8 +196,6 @@ export default {
         new: "",
         again: "",
       },
-      dataFormObj: {},
-      dataFormId: null,
       // leup: true,
       dataRules: {
         //数据项表单验证
@@ -468,6 +466,10 @@ export default {
     addSubmit (formName) {
       this.$refs[formName].validate(async (valid) => {
         if (valid) {
+          if (this.dataForm.new !== this.dataForm.again) {
+            this.$message.error("两次输入的密码不一致,请重新输入");
+            return false;
+          }
           this.dataForm.user_sec_pwd = MD5(this.dataForm.again)
           const obj = Object.assign(this.ruleForm, this.dataForm)
           const { code, message } = await GeneralDataReception({