質問編集履歴

3

修正

2019/06/05 11:42

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

2

修正

2019/06/05 11:42

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  console.log('after get token') // ここは表示されません。
26
26
 
27
- await this.$store.dispatch('auth/login, params)
27
+ await this.$store.dispatch('auth/login', params)
28
28
 
29
29
  }
30
30
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  async getToken(context, data){
44
44
 
45
- await axios.post(/oauth/token, data).then(res => {
45
+ await axios.post('/oauth/token', data).then(res => {
46
46
 
47
47
  console.log(res) // ここの処理になにも入ってきません。
48
48
 

1

追記

2019/06/05 11:32

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,8 @@
21
21
  async login (){
22
22
 
23
23
  if(!isStrage){ await this.accessToken()}
24
+
25
+ console.log('after get token') // ここは表示されません。
24
26
 
25
27
  await this.$store.dispatch('auth/login, params)
26
28