yanjinhui
5 天以前 d3091b37a593885877f4ed4180d49e5ce259b657
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 type="403" @error-click="errorClick" />
</template>