|
@@ -88,13 +88,15 @@
|
|
|
|
|
|
|
|
|
this.$u.post('/base/auth/login', {
|
|
|
- username: btoa(JSON.stringify(data))
|
|
|
+ username: this.username,
|
|
|
+ password: btoa(JSON.stringify(this.password)),
|
|
|
+ role_id: 2
|
|
|
}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
console.log(res, '登陆成功')
|
|
|
this.$u.vuex('vuex_login', {
|
|
|
account: this.username,
|
|
|
- password: this.username,
|
|
|
+ password: this.password,
|
|
|
})
|
|
|
this.$u.vuex('vuex_token', 'bearer ' + res.data.token);
|
|
|
this.$u.vuex('vuex_user', res.data.user);
|