-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<div class="flex-col-center h-800px"> | ||
<img v-if="type === '403'" src="@/assets/svg/error-403.svg" alt="" class="w-1/3" /> | ||
<img v-if="type === '404'" src="@/assets/svg/error-404.svg" alt="" class="w-1/3" /> | ||
<img v-if="type === '500'" src="@/assets/svg/error-500.svg" alt="" class="w-1/3" /> | ||
<n-button type="primary" @click="toRoot">回到首页</n-button> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useAppRouter } from '@/hook'; | ||
type TipType = '403' | '404' | '500'; | ||
defineProps<{ | ||
/** 异常类型 403 404 500 */ | ||
type: TipType; | ||
}>(); | ||
const { toRoot } = useAppRouter(); | ||
</script> | ||
|
||
<style lang="scss" scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<div>404</div> | ||
<ErrorTip type="404" /> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<div>403</div> | ||
<ErrorTip type="403" /> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<div>500</div> | ||
<ErrorTip type="500" /> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|