| | |
| | | |
| | | // 登录方法 |
| | | export function login(nickname, password, code, uuid) { |
| | | alert(nickname) |
| | | |
| | | const data = { |
| | | nickname, |
| | | password, |
| | |
| | | Cookies.remove("password"); |
| | | Cookies.remove('rememberMe'); |
| | | } |
| | | alert(this.loginForm.nickName) |
| | | // alert(this.loginForm.nickName) |
| | | this.$store.dispatch("Login", this.loginForm).then(() => { |
| | | this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); |
| | | }).catch(() => { |
| | |
| | | id: undefined, |
| | | name: undefined, |
| | | mid: undefined, |
| | | fid: undefined |
| | | fid: undefined, |
| | | clanId: undefined |
| | | }, |
| | | defaultProps: { |
| | | children: "children", |
| | |
| | | /** 提交按钮 */ |
| | | submitForm: function() { |
| | | let _this = this |
| | | let clanId = this.$store.state.user.clanId |
| | | this.form.clanId = clanId |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | // alert(this.form.id) |