File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
resources/spa/src/page/wechat Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,6 @@ export default {
156
156
this .$store .dispatch (' GET_UNREAD_COUNT' )
157
157
this .$store .dispatch (' GET_NEW_UNREAD_COUNT' )
158
158
this .$store .commit (' SAVE_USER' , user)
159
- this .$lstore .removeData (' H5_WECHAT_MP_OPENID' )
160
- this .$lstore .removeData (' H5_WECHAT_MP_ASTOKEN' )
161
159
})
162
160
})
163
161
.finally (() => {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export default {
94
94
this .$http
95
95
.post (
96
96
' socialite/wechat' ,
97
- { access_token: accessToken },
97
+ { access_token: this . accessToken },
98
98
{ validateStatus : s => s === 201 || s === 404 }
99
99
)
100
100
.then (({ status, data: { token = ' ' , user = {} } = {} }) => {
@@ -106,8 +106,6 @@ export default {
106
106
// 保存用户信息 并跳转
107
107
this .$router .push (this .$route .query .redirect || ' /feeds?type=hot' )
108
108
this .$nextTick (() => {
109
- this .$lstore .removeData (' H5_WECHAT_MP_OPENID' )
110
- this .$lstore .removeData (' H5_WECHAT_MP_ASTOKEN' )
111
109
this .$store .commit (' SAVE_USER' , user)
112
110
this .$store .dispatch (' GET_UNREAD_COUNT' )
113
111
this .$store .dispatch (' GET_NEW_UNREAD_COUNT' )
Original file line number Diff line number Diff line change @@ -147,9 +147,6 @@ export default {
147
147
this .$store .dispatch (' GET_UNREAD_COUNT' )
148
148
this .$store .dispatch (' GET_NEW_UNREAD_COUNT' )
149
149
this .$store .commit (' SAVE_USER' , user)
150
- this .$lstore .removeData (' H5_WECHAT_MP_OPENID' )
151
- this .$lstore .removeData (' H5_WECHAT_MP_ASTOKEN' )
152
- this .$lstore .removeData (' H5_WECHAT_NICKNAME' )
153
150
})
154
151
})
155
152
.catch (
You can’t perform that action at this time.
0 commit comments