|
@@ -155,12 +155,8 @@ export default {
|
|
|
message: '加载中...',
|
|
message: '加载中...',
|
|
|
forbidClick: true
|
|
forbidClick: true
|
|
|
});
|
|
});
|
|
|
- this.verifyMsg(this.form.phone, this.form.code)
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- return this.$http.post(
|
|
|
|
|
- '/auth/phoneRegister?phone=' + this.form.phone + '&password=' + this.form.password
|
|
|
|
|
- );
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post('/auth/phoneRegister', this.form)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
localStorage.setItem('nineToken', res);
|
|
localStorage.setItem('nineToken', res);
|
|
|
return this.$store.dispatch('getUserInfo');
|
|
return this.$store.dispatch('getUserInfo');
|