You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this code to distinguish routes of different hostname.
import default_routes from "./default";
import tenantone from "./tenantone";
import tenanttwo from "./tenanttwo";
const currentHostName = window.location.hostname;
let router;
if (currentHostName === "127.0.0.1") {
router = tenantone;
} else if (currentHostName === "localhost") {
router = tenanttwo;
} else {
router = default_routes;
}
export default router;
and this is working properly but I've little bit issue. Since every hostname has completely different layout. for example when i'm using this code in App.vue
Navbar is available in all the tenant. and also this is the problem. How can I handle this situation properly. because, each and every tenant have its own navbar design and layout. I didn't want to repeat myself.
and here is my project layout.
The text was updated successfully, but these errors were encountered:
Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).
I hope to see your helper-created issue very soon!
I'm using this code to distinguish routes of different hostname.
and this is working properly but I've little bit issue. Since every hostname has completely different layout. for example when i'm using this code in App.vue
Navbar is available in all the tenant. and also this is the problem. How can I handle this situation properly. because, each and every tenant have its own navbar design and layout. I didn't want to repeat myself.
and here is my project layout.
The text was updated successfully, but these errors were encountered: