<script setup lang="ts">
import { Error } from '../../components/Error'
// import { usePermissionStore } from '@common/src/store/modules/permission'
import { useRouter } from 'vue-router'

const { go } = useRouter()

// const permissionStore = usePermissionStore()

const errorClick = () => {
  // push(permissionStore.addRouters[0]?.path as string)
  go(-1)
}
</script>

<template>
  <Error @error-click="errorClick" />
</template>
