[Fix] correct Yatai web's nabber link display undefined, if no prefix url provided
@@ -12,9 +12,10 @@ import Breadcrumbs from "./components/Breadcrumbs";
import NavigationBar from "./components/NavigationBar";
import {setBaseUrl} from './utils/HttpRequestContainer';
import {useCookies} from 'react-cookie';
+
export const App = () => {
const [cookies] = useCookies();
- const baseURL = "/" + cookies["baseURLCookie"];
+ const baseURL = cookies["baseURLCookie"] === undefined ? "/" : "/" + cookies["baseURLCookie"]
setBaseUrl(baseURL);
return (
<BrowserRouter basename={baseURL}>
