mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-20 22:57:43 +08:00
refactor: 更换 ESLint 配置为 @antfu/eslint-config
This commit is contained in:
@@ -23,13 +23,12 @@ import Icon500 from '@/components/icons/Icon500.vue'
|
||||
|
||||
defineOptions({ name: 'ErrorPage' })
|
||||
|
||||
interface Props {
|
||||
code: number
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
code: 403
|
||||
})
|
||||
|
||||
interface Props {
|
||||
code: number
|
||||
}
|
||||
const IconMap: Record<number, Component> = {
|
||||
403: Icon403,
|
||||
404: Icon404,
|
||||
|
@@ -9,5 +9,5 @@ const router = useRouter()
|
||||
const { params, query } = route
|
||||
const { path } = params
|
||||
|
||||
router.replace({ path: '/' + path, query })
|
||||
router.replace({ path: `/${path}`, query })
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user