File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { host , restApiRoot , port } from '~/server/config.json' ;
1
+ import { host , restApiRoot , port } from '~/server/config.json' ;
2
2
import axios from 'axios' ;
3
3
4
4
const Storage = window . localStorage ;
@@ -50,7 +50,7 @@ http.removeToken = () => {
50
50
removeTokenFromLocalStorage ( ) ;
51
51
} ;
52
52
53
- http . find = ( endpoint , filter ) => http . get ( endpoint , { params : { filter } } ) ;
53
+ http . find = ( endpoint , filter ) => http . get ( endpoint , { params : { filter} } ) ;
54
54
55
55
/* Response Interceptors */
56
56
const interceptResErrors = ( err ) => {
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export function loadAccount({commit}, userId) {
93
93
. then ( acc => commit ( 'setAccount' , acc ) )
94
94
. catch ( ( ) => {
95
95
loopback . removeToken ( ) ;
96
- router . push ( { name : 'login' } ) ;
96
+ router . push ( { name : 'login' } ) ;
97
97
} ) ;
98
98
}
99
99
You can’t perform that action at this time.
0 commit comments