commit
d46119e174
|
@ -10,7 +10,7 @@ export const constantRouterMap: AppRouteRecordRaw[] = [
|
|||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
redirect: '/dashboard/analysis',
|
||||
redirect: '/level',
|
||||
name: 'Root',
|
||||
meta: {
|
||||
hidden: true
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import { Error } from '@/components/Error'
|
||||
import { usePermissionStore } from '@/store/modules/permission'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const { push } = useRouter()
|
||||
|
||||
const permissionStore = usePermissionStore()
|
||||
|
||||
const errorClick = () => {
|
||||
push(permissionStore.addRouters[0]?.path as string)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Error @error-click="errorClick" />
|
||||
</template>
|
Loading…
Reference in New Issue