File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,20 @@ util.ajax.interceptors.request.use(function (config) {
31
31
config . headers . common [ ".AspNetCore.Culture" ] = abp . utils . getCookieValue ( "Abp.Localization.CultureName" ) ;
32
32
config . headers . common [ "Abp.TenantId" ] = abp . multiTenancy . getTenantIdCookie ( ) ;
33
33
return config ;
34
- } , function ( error ) {
34
+ } , function ( error ) {
35
35
36
36
return Promise . reject ( error ) ;
37
37
} ) ;
38
38
39
- util . ajax . interceptors . response . use ( function ( response ) {
39
+ + util . ajax . interceptors . response . use ( function ( response ) {
40
40
// Do something with response data
41
41
return response ;
42
- } , function ( error ) {
42
+ } , function ( error ) {
43
43
// Do something with response error
44
- if ( ! ! error . response && ! ! error . response . data && ! ! error . response . data . __abp ) {
44
+ if ( ! ! error . response && ! ! error . response . data && ! ! error . response . data . __abp ) {
45
45
abp . ajax . showError ( error . response . data . error ) ;
46
- } else {
47
- if ( ! error . response ) {
46
+ } else {
47
+ if ( ! error . response ) {
48
48
abp . ajax . showError ( abp . ajax . defaultError ) ;
49
49
return
50
50
}
@@ -67,10 +67,7 @@ util.ajax.interceptors.response.use(function (response) {
67
67
}
68
68
}
69
69
return Promise . reject ( error ) ;
70
- } )
71
- } , function ( error ) {
72
- return Promise . reject ( error ) ;
73
- } ) ;
70
+ } )
74
71
75
72
util . inOf = function ( arr , targetArr ) {
76
73
let res = true ;
@@ -309,7 +306,7 @@ util.fullscreenEvent = function (vm) {
309
306
vm . $store . commit ( 'updateMenulist' ) ;
310
307
} ;
311
308
312
- util . localize = function ( key ) {
309
+ util . localize = function ( key ) {
313
310
return abp . localization . localize ( key , 'AbpProjectName' ) ;
314
311
} ;
315
312
You can’t perform that action at this time.
0 commit comments