mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
- added not found page
- Fixed admin menu in regular license - allow_homepage default setting in regular license - frontend build
This commit is contained in:
12
resources/js/router.js
vendored
12
resources/js/router.js
vendored
@@ -625,6 +625,17 @@ const routesIndex = [
|
||||
},
|
||||
},
|
||||
]
|
||||
const routesOthers = [
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '*',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found-shared" */ './views/Shared/NotFoundShared'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
@@ -635,6 +646,7 @@ const router = new Router({
|
||||
...routesIndex,
|
||||
...routesAuth,
|
||||
...routesUser,
|
||||
...routesOthers,
|
||||
],
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
if (savedPosition) {
|
||||
|
||||
@@ -13,9 +13,8 @@
|
||||
<b class="mobile-menu-label">{{ $t('global.admin') }}</b>
|
||||
<MenuItemList :navigation="AdminNavigation" />
|
||||
|
||||
<!--SaaS menu-->
|
||||
<b class="mobile-menu-label">{{ $t('global.saas') }}</b>
|
||||
<MenuItemList :navigation="SassNavigation" />
|
||||
<b v-if="config.isSaaS" class="mobile-menu-label">{{ $t('global.saas') }}</b>
|
||||
<MenuItemList v-if="config.isSaaS" :navigation="SassNavigation" />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,6 +32,9 @@
|
||||
MenuItemList,
|
||||
MobileHeader,
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['config']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
AdminNavigation: [
|
||||
@@ -54,6 +56,12 @@
|
||||
routeName: 'AppOthers',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'monitor',
|
||||
title: this.$t('admin_menu.pages'),
|
||||
routeName: 'Pages',
|
||||
isVisible: true,
|
||||
},
|
||||
],
|
||||
SassNavigation: [
|
||||
{
|
||||
@@ -68,12 +76,6 @@
|
||||
routeName: 'Invoices',
|
||||
isVisible: true,
|
||||
},
|
||||
{
|
||||
icon: 'monitor',
|
||||
title: this.$t('admin_menu.pages'),
|
||||
routeName: 'Pages',
|
||||
isVisible: true,
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user