File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 74
74
< script >
75
75
window . onload = function ( ) {
76
76
if ( ! abp . security . antiForgery . getToken ( ) ) {
77
- fetch ( "/antiforgery/SetCookie" )
78
- . then ( data => { } ) ;
77
+ fetch ( "/AntiForgery/SetCookie" ) ;
79
78
}
80
79
81
80
var configObject = JSON . parse ( '%(ConfigObject)' ) ;
115
114
lineHeight : "normal"
116
115
} ,
117
116
onClick : function ( ) {
118
- var authorizeButton = document . getElementById ( 'authorize' ) ;
119
117
if ( abp . auth . getToken ( ) ) {
120
118
abp . swagger . logout ( ) ;
121
- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
122
- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
119
+ location . reload ( ) ;
123
120
} else {
124
121
abp . swagger . openAuthDialog ( function ( ) {
125
- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
126
- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
127
- abp . swagger . closeAuthDialog ( ) ;
122
+ location . reload ( ) ;
128
123
} ) ;
129
124
}
130
- location . reload ( ) ;
131
125
}
132
126
} , getAuthorizeButtonText ( ) ) ;
133
127
}
You can’t perform that action at this time.
0 commit comments