mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 代码优化
ISSUES CLOSED: \
This commit is contained in:
@ -2,8 +2,6 @@
|
||||
<exception-base type="403" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="404" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="500" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../../system-view/components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -1,29 +0,0 @@
|
||||
<template>
|
||||
<div class="flex-col-center wh-full">
|
||||
<div class="text-400px text-primary">
|
||||
<icon-custom-no-permission v-if="type === '403'" />
|
||||
<icon-custom-not-found v-if="type === '404'" />
|
||||
<icon-custom-service-error v-if="type === '500'" />
|
||||
</div>
|
||||
<router-link :to="{ name: routeHomePath }">
|
||||
<n-button type="primary">回到首页</n-button>
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { routeName } from '@/router';
|
||||
|
||||
type ExceptionType = '403' | '404' | '500';
|
||||
|
||||
interface Props {
|
||||
/** 异常类型 403 404 500 */
|
||||
type: ExceptionType;
|
||||
}
|
||||
|
||||
defineProps<Props>();
|
||||
|
||||
const routeHomePath = routeName('root');
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -1,3 +0,0 @@
|
||||
import ExceptionBase from './ExceptionBase.vue';
|
||||
|
||||
export { ExceptionBase };
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="403" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="404" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="404" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
@ -2,8 +2,6 @@
|
||||
<exception-base type="500" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ExceptionBase } from '../components';
|
||||
</script>
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
Reference in New Issue
Block a user