refactor: 更换 ESLint 配置为 @antfu/eslint-config

This commit is contained in:
2024-05-10 22:29:45 +08:00
parent 5101dd12d9
commit bfc8e42bad
148 changed files with 7314 additions and 5046 deletions

View File

@@ -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,

View File

@@ -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>