mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
feat: add local file system storage provider (#224)
Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
@ -48,6 +48,14 @@ function isLocalhost() {
|
||||
return hostname === "localhost";
|
||||
}
|
||||
|
||||
export function getFullServerUrl() {
|
||||
let fullServerUrl = window.location.origin;
|
||||
if (fullServerUrl === "http://localhost:7001") {
|
||||
fullServerUrl = "http://localhost:8000";
|
||||
}
|
||||
return fullServerUrl;
|
||||
}
|
||||
|
||||
export function isProviderVisible(providerItem) {
|
||||
if (providerItem.provider === undefined || providerItem.provider === null) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user