Improve demo site link
This commit is contained in:
parent
ef1cf307b8
commit
6f2e6c28d0
|
@ -142,6 +142,10 @@ class StoreListPage extends React.Component {
|
|||
width: "250px",
|
||||
sorter: (a, b) => a.storageProvider.localeCompare(b.storageProvider),
|
||||
render: (text, record, index) => {
|
||||
if (text === "") {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<a target="_blank" rel="noreferrer" href={Setting.getMyProfileUrl(this.state.account).replace("/account", `/providers/admin/${text}`)}>
|
||||
{text}
|
||||
|
|
|
@ -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