优化构架
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { ClientModuleManifest } from '../types.ts'
|
||||
|
||||
export const systemModule = {
|
||||
key: 'system',
|
||||
routes: [
|
||||
{
|
||||
path: 'forbidden',
|
||||
name: 'forbidden',
|
||||
component: () => import('./views/ForbiddenView.vue'),
|
||||
release: 'active',
|
||||
meta: { title: '无权访问', description: '当前账号没有访问该页面的权限' },
|
||||
},
|
||||
],
|
||||
} satisfies ClientModuleManifest
|
||||
@@ -2,7 +2,7 @@
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ArrowLeft, ShieldX } from '@lucide/vue'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { useAuthStore } from '@/modules/auth/public'
|
||||
import { getFirstAccessiblePath } from '@/navigation/clientNavigation'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user