| | |
| | | name: "userlogin", |
| | | data() { |
| | | return { |
| | | userName:'', |
| | | userName: '', |
| | | passwordVisible: false, |
| | | passwordForm: {}, |
| | | passwordOption: { |
| | |
| | | }); |
| | | return false; |
| | | } |
| | | }; |
| | | } |
| | | ; |
| | | this.$router.push({path: this.tagWel.value}); |
| | | loading.close(); |
| | | }).catch((err) => { |
| | |
| | | this.$message.success('修改成功,即将跳转到首页'); |
| | | this.passwordVisible = false; |
| | | this.$refs.changeForm.resetFields(); |
| | | this.$store.dispatch("LoginByUsername",{...this.loginForm,password:form.confirmPassword}).then(data => { |
| | | this.$store.dispatch("LoginByUsername", {...this.loginForm, password: form.confirmPassword}).then(data => { |
| | | if (data.obj.failCode !== 'loginSuccess') { |
| | | this.$message.error(data.msg); |
| | | } |