({})
| 21 | }, |
| 22 | |
| 23 | logout({}) { |
| 24 | return axiosInstance.post('logout') |
| 25 | .catch(error => { |
| 26 | const {status} = error.response; |
| 27 | if (status !== 405) { |
| 28 | throw error; |
| 29 | } |
| 30 | }); |
| 31 | } |
| 32 | }, |
| 33 | mutations: { |
| 34 | SET_CONFIG(state, {username, admin, enabled, canEditCode}) { |