File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 44
55<script >
66
7+ /* eslint-disable no-empty */
8+
79export default {
810 name: ' SignOut' ,
911 async mounted () {
10- await this .$http .post (' /auth/logout' , {
11- access_token: localStorage .getItem (process .env .VUE_APP_ACCESS_TOKEN ),
12- refresh_token: localStorage .getItem (process .env .VUE_APP_REFRESH_TOKEN ),
13- });
12+ try {
13+ await this .$http .post (' /auth/logout' , {
14+ access_token: localStorage .getItem (process .env .VUE_APP_ACCESS_TOKEN ),
15+ refresh_token: localStorage .getItem (process .env .VUE_APP_REFRESH_TOKEN ),
16+ });
17+ } catch (e) {}
1418 localStorage .removeItem (process .env .VUE_APP_ACCESS_TOKEN );
1519 localStorage .removeItem (process .env .VUE_APP_REFRESH_TOKEN );
1620 localStorage .removeItem (process .env .VUE_APP_VUEX_PERSISTED_STATE );
You can’t perform that action at this time.
0 commit comments