Skip to content

Commit 22e518e

Browse files
committed
Update the logic of reload the page.
1 parent 3f73857 commit 22e518e

File tree

1 file changed

+2
-7
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui

1 file changed

+2
-7
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/index.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,14 @@
109109
lineHeight: "normal"
110110
},
111111
onClick: function () {
112-
var authorizeButton = document.getElementById('authorize');
113112
if (abp.auth.getToken()) {
114113
abp.swagger.logout();
115-
authorizeButton.innerText = getAuthorizeButtonText();
116-
authorizeButton.className = 'btn ' + getAuthorizeButtonCssClass();
114+
location.reload();
117115
} else {
118116
abp.swagger.openAuthDialog(function () {
119-
authorizeButton.innerText = getAuthorizeButtonText();
120-
authorizeButton.className = 'btn ' + getAuthorizeButtonCssClass();
121-
abp.swagger.closeAuthDialog();
117+
location.reload();
122118
});
123119
}
124-
location.reload();
125120
}
126121
}, getAuthorizeButtonText());
127122
}

0 commit comments

Comments
 (0)