Improve demo site link

This commit is contained in:
Yang Luo 2023-09-07 18:24:36 +08:00
parent ef1cf307b8
commit 6f2e6c28d0
2 changed files with 5 additions and 1 deletions

View File

@ -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}

View File

@ -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() {},
});