| | |
| | | |
| | | // 登录方法 |
| | | 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) |
| | |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | //target: `https://10.39.18.174:8080/`, |
| | | // target: `https://192.168.1.3:8080/`, |
| | | // target: `https://192.168.1.3:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |