|
@@ -43,7 +43,7 @@
|
43
|
43
|
</div>
|
44
|
44
|
</div>
|
45
|
45
|
<div class="form-group row"></div>
|
46
|
|
- <button @click="Login" class="btn btn-b-n" type="submit">Sign In</button>
|
|
46
|
+ <button @click="Login()" class="btn btn-b-n" type="submit">Sign In</button>
|
47
|
47
|
<p v-if="user !== null">{{ user }}</p>
|
48
|
48
|
</div>
|
49
|
49
|
</form>
|
|
@@ -62,7 +62,7 @@
|
62
|
62
|
</div>
|
63
|
63
|
<div class="form-group row"></div>
|
64
|
64
|
<div class="offset-md-3 col-md-5">
|
65
|
|
- <button class="btn btn-b-n" type="submit">Get Help</button>
|
|
65
|
+ <button @click="SendMail()" class="btn btn-b-n" type="submit">Get Help</button>
|
66
|
66
|
</div>
|
67
|
67
|
</div>
|
68
|
68
|
</form>
|
|
@@ -98,7 +98,7 @@ export default {
|
98
|
98
|
password: this.password,
|
99
|
99
|
})
|
100
|
100
|
.then(response => console.log(response.data));
|
101
|
|
- this.$router.push('/about/us');
|
|
101
|
+ this.$router.push('/');
|
102
|
102
|
},
|
103
|
103
|
togglePassword() {
|
104
|
104
|
this.showPassword = true;
|
|
@@ -108,14 +108,15 @@ export default {
|
108
|
108
|
this.showPassword = false;
|
109
|
109
|
this.isPasswordShown = 'password';
|
110
|
110
|
},
|
111
|
|
- // authHeader() {
|
112
|
|
- // const user = JSON.parse(localStorage.getItem('user'));
|
|
111
|
+ authHeader() {
|
|
112
|
+ const user = JSON.parse(localStorage.getItem('user'));
|
113
|
113
|
|
114
|
|
- // if (user && user.token) {
|
115
|
|
- // return { Authoriztion: `Bearer ${user.token}` };
|
116
|
|
- // }
|
117
|
|
- // return {};
|
118
|
|
- // },
|
|
114
|
+ if (user && user.token) {
|
|
115
|
+ return { Authoriztion: `Bearer ${user.token}` };
|
|
116
|
+ }
|
|
117
|
+ return {};
|
|
118
|
+ },
|
|
119
|
+ SendMail() {},
|
119
|
120
|
},
|
120
|
121
|
};
|
121
|
122
|
</script>
|