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 7474 < script >
7575 window . onload = function ( ) {
7676 if ( ! abp . security . antiForgery . getToken ( ) ) {
77- fetch ( "/antiforgery/SetCookie" )
78- . then ( data => { } ) ;
77+ fetch ( "/AntiForgery/SetCookie" ) ;
7978 }
8079
8180 var configObject = JSON . parse ( '%(ConfigObject)' ) ;
115114 lineHeight : "normal"
116115 } ,
117116 onClick : function ( ) {
118- var authorizeButton = document . getElementById ( 'authorize' ) ;
119117 if ( abp . auth . getToken ( ) ) {
120118 abp . swagger . logout ( ) ;
121- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
122- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
119+ location . reload ( ) ;
123120 } else {
124121 abp . swagger . openAuthDialog ( function ( ) {
125- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
126- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
127- abp . swagger . closeAuthDialog ( ) ;
122+ location . reload ( ) ;
128123 } ) ;
129124 }
130- location . reload ( ) ;
131125 }
132126 } , getAuthorizeButtonText ( ) ) ;
133127 }
You can’t perform that action at this time.
0 commit comments