Fix links
This commit is contained in:
parent
5cb0df3eb1
commit
9020043669
|
@ -147,7 +147,7 @@ class StoreListPage extends React.Component {
|
|||
}
|
||||
|
||||
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}
|
||||
{Setting.renderExternalLink()}
|
||||
</a>
|
||||
|
|
|
@ -31,7 +31,7 @@ const demoModeCallback = (res) => {
|
|||
okText: i18next.t("general:OK"),
|
||||
cancelText: i18next.t("general:Cancel"),
|
||||
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() {},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue