feat: Sidebar in vue
This commit is contained in:
@@ -12,6 +12,7 @@ import Search from './pages/Search.vue';
|
||||
import PublishedProducts from './pages/PublishedProducts.vue';
|
||||
import Buying from './pages/Buying.vue';
|
||||
import BuyingMessages from './pages/BuyingMessages.vue';
|
||||
import NotFound from './pages/NotFound.vue';
|
||||
|
||||
const route_map = {
|
||||
'marketplace/home': Home,
|
||||
@@ -74,6 +75,10 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if (!route) {
|
||||
return NotFound;
|
||||
}
|
||||
|
||||
return route_map[route];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user