Fix links

This commit is contained in:
Yang Luo 2023-09-07 22:53:26 +08:00
parent 5cb0df3eb1
commit 9020043669
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class StoreListPage extends React.Component {
} }
return ( return (
<a target="_blank" rel="noreferrer" href={Setting.getMyProfileUrl(this.state.account).replace("/account", `/providers/admin/${text}`)}> <a target="_blank" rel="noreferrer" href={Setting.getMyProfileUrl(this.props.account).replace("/account", `/providers/admin/${text}`)}>
{text} {text}
{Setting.renderExternalLink()} {Setting.renderExternalLink()}
</a> </a>

View File

@ -31,7 +31,7 @@ const demoModeCallback = (res) => {
okText: i18next.t("general:OK"), okText: i18next.t("general:OK"),
cancelText: i18next.t("general:Cancel"), cancelText: i18next.t("general:Cancel"),
onOk() { onOk() {
Setting.openLink(`https://demo-ai.casbin.com/${location.pathname}${location.search}?username=built-in/admin&password=123`); Setting.openLink(`https://demo-ai.casbin.com${location.pathname}${location.search}?username=built-in/admin&password=123`);
}, },
onCancel() {}, onCancel() {},
}); });