| | |
| | | const isValidcode = this.codecheck(this.Code); |
| | | const isValiduser = this.usernamecheck(this.username); |
| | | if (isValidcode && isValiduser) { |
| | | // let Data = { |
| | | // tenantId: "000000", |
| | | // grant_type: "smsCode", |
| | | // phone: this.username, |
| | | // code: this.Code |
| | | // } |
| | | let Data = { |
| | | tenantId: "000000", |
| | | username: this.username, |
| | | grant_type: "password", |
| | | password: "94e8cde4612b3fd390677d42e7b22002", |
| | | scope: "all", |
| | | type: "account" |
| | | grant_type: "smsCode", |
| | | phone: this.username, |
| | | code: this.Code |
| | | }; |
| | | // let Data = { |
| | | // tenantId: "000000", |
| | | // username: this.username, |
| | | // grant_type: "password", |
| | | // password: "94e8cde4612b3fd390677d42e7b22002", |
| | | // scope: "all", |
| | | // type: "account" |
| | | // }; |
| | | Loginto(Data).then(res => { |
| | | if (res.data.code == 400) { |
| | | this.$toast.fail(res.data.msg); |
| | |
| | | proxy: { |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | target: "http://127.0.0.1:8111", |
| | | // target: "http://139.196.94.172:8111", |
| | | // target: "http://127.0.0.1:8111", |
| | | target: "http://139.196.94.172:8111", |
| | | // target: "https://132v69t077.yicp.fun", |
| | | // target: "http://139.196.94.172:8111", |
| | | // target: 'http://192.168.1.83:2888', |