feat: use staticBaseUrl for all static resources (#1015)

* feat: modify system image link

* Update App.less

Co-authored-by: Yang Luo <hsluoyz@qq.com>
This commit is contained in:
leoshine
2022-08-15 09:18:21 +08:00
committed by GitHub
parent ca13247572
commit ba732b3075
8 changed files with 19 additions and 12 deletions

View File

@ -56,7 +56,7 @@ class HomePage extends React.Component {
if (filename === "/account") {
filename = "/users";
}
items[i].logo = `https://cdn.casbin.com/static/img${filename}.png`;
items[i].logo = `${Setting.StaticBaseUrl}/img${filename}.png`;
items[i].createdTime = "";
}
} else {